我不能在phonegap中包含视频服务。如果我取消注释'com.2sdevs.videogular',应用程序就无法工作。其他人也有这个问题吗?
var app = angular.module('myApp', ['ui.bootstrap',
'ngResource',
'ngRoute',
//'com.2fdevs.videogular',
'ui.calendar',
'ui.utils',
'ui.sortable',
'ngStorage',
'googlechart'],
function ($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|webcal|mailto):/);
}
);我将JS文件包含在index.html中:
<script src="vendor/videogular/0.3.0/app/scripts/com/2fdevs/videogular/videogular.js"></script>JS位于该目录中。提前谢谢。
我知道这并没有提供更多的信息。如果有更好的方式获取控制台消息,请告诉我。我试图从Safari进行开发,但我可以让控制台启动,直到应用程序加载到模拟器中,我认为这是在加载过程中发生的。
以下是带有com.2fdevs.videogular的system.log : Sep 14 10:44:41 Matts-MacBook-Pro.local AngGap3254:
Started backup to iCloud! Please be careful.
Your application might rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines"
You could find it at the following address https://developer.apple.com/icloud/documentation/data- storage/ .
Sep 14 10:44:43 Matts-MacBook-Pro.local backboardd[96900] <Warning>: CoreAnimation: timed out fence 9c03
Sep 14 10:44:43 Matts-MacBook-Pro.local backboardd[96900] <Warning>: CoreAnimation: updates deferred for too long
Sep 14 10:44:44 Matts-MacBook-Pro.local AngGap[3254] <Warning>: Resetting plugins due to page load.
Sep 14 10:44:45 Matts-MacBook-Pro.local AngGap[3254] <Warning>: Finished load of: file:///Users/matt/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/F11B5DC0-4490-43F6-8E5F-8FDBED320318/AngGap.app/www/index.html#/发布于 2014-09-13 18:27:50
使用Videogular没有太多的工作要做。
也许你可以试试最新的版本(0.5.1)。也可以看看这些帖子,也许对你有帮助。
如果你有一些你的应用程序的日志来看看发生了什么,那就太好了,因为它应该很容易让它工作。
发布于 2014-09-19 02:46:22
好吧,我不得不在Safari中从调试器(command-R)重置设备,因为这是在加载时发生的。获取有关SanitizeURI的错误。所以我不得不从videogular.js中注释掉ngSanitize:
angular.module("com.2fdevs.videogular", [/*"ngSanitize"*/])https://stackoverflow.com/questions/25817991
复制相似问题