2012-04-19 184 views
2

我是Phonegap的新手,我试图使用它录制音频。我接着PhoneGap的API提供的代码,但它抛出以下异常在控制台:PhoneGap尝试录制音频时出错

04-19 08:59:55.934: E/Web Console(4197): TypeError: Result of expression 
'navigator.device' [undefined] is not an object. 
at file:///android_asset/www/index.html:31 
code at line 31 is navigator.device.capture.captureVideo(captureSuccess, captureError, {limit: 2}); 

回答

0

这是错误的PhoneGap的1.5。您应该使用PhoneGap 1.6.1

您可以从PhoneGap API复制代码并根据您的要求进行更改。