我已经阅读了离子网站的ionic2文档。并成功添加了用于媒体的cordova插件。但当我使用media.create()方法时,没有任何反应。当我尝试使用VS代码与浏览器调试应用程序时,此错误到达“
core.es5.js:1085 ERROR Error: Uncaught (in promise): cordova_not_available
at g (polyfills.js:3)
at l (polyfills.js:3)
at Function.t.reject (polyfills.js:3)
at MediaPlugin.value [as create] (decorators.js:57)
at SessionPage.startPlay (session.ts:49)
at Object.eval [as handleEvent] (SessionPage.html:16)
at handleEvent (core.es5.js:11852)
at callWithDebugContext (core.es5.js:13060)
at Object.debugHandleEvent [as handleEvent] (core.es5.js:12648)
at dispatchEvent (core.es5.js:8830)
at core.es5.js:9419
at HTMLImageElement.<anonymous> (platform-browser.es5.js:2674)
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.es5.js:4136)
at t.invokeTask (polyfills.js:3)
“
当我尝试使用android studio进行调试时,我无法找到src文件夹。 如果有任何机构在ionic2中实施了媒体插件,请帮助我。