2012-04-19 182 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複製代碼並根據您的要求進行更改。