PhoneGap: media.startRecord() not working in cordova-1.6.1

I'm trying to record a sample audio with phoneGap, but with no success. What I do is pretty simple, according to the documentation: The "audio.wav" exists in my "www" folder and is an empty wav file. Whenever this code block runs, I get this console error: - ERROR: Method 'create:withDict:' not defined in Plugin 'Media' - FAILED pluginJSON = {"className":"Media","methodName":"create","arguments":["INVALID","952d1fe0-5ec7-5e48-d68a-74cc979878b5","audio.wav"]} Even with that error, the recording supposedly continues. But when I try to play the recording, I watch the media object at the debugger and I see '_duration : -1' A different error appears when I try to debug the application on an actuall iPhone device.

以上就是PhoneGap: media.startRecord() not working in cordova-1.6.1的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏