标题: 关于不活照片 [打印本页] 作者: 香草zzz 时间: 2016-12-7 20:52 标题: 关于不活照片 小弟使用ionic 已经安装了capture插件 也已经注入了$cordovaCapture使用如下方法时候报错
$cordovaCapture.captureVideo(options).then(function(videoData) { // Success! Video data is here }, function(err) { // An error occurred. Show a message to the user });
错误信息:
12-07 20:39:03.174 23165-23165/? I/chromium: [INFO:CONSOLE(26799)] "TypeError: Cannot read property 'capture' of undefined
at Object.captureVideo (file:///android_asset/www/ng-cordova.js:1685:30)
at Object.$ionicActionSheet.show.buttonClicked (file:///android_asset/www/js/controllers.js:299:41)
at Scope.scope.buttonClicked (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:53393:16)
at fn (eval at <anonymous> (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:27643:15), <anonymous>:4:308)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:65429:9
at Scope.$eval (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:30400:28)
at Scope.$apply (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:30500:25)
at HTMLButtonElement.<anonymous> (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:65428:13)
at defaultHandlerWrapper (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:16792:11)
at HTMLButtonElement.eventHandler (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:16780:9)", source: file:///android_asset/www/lib/ionic/js/ionic.bundle.js (26799)
请问是为什么s