- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
I'm trying to get to work the audio capture app as described in http://qnimate.com/record-microphone-audio-using-intel-xdk/ with Intel XDK 1816. When I debug the app on my iPhone 4 I get the following console logs:
deviceready has not fired after 5 seconds. cordova.js:1143
Channel not fired: onCordovaReady cordova.js:1136
Channel not fired: IntelXDKPreview cordova.js:1136
Channel not fired: onCordovaInfoReady cordova.js:1136
When navigator.device.capture.captureAudio(captureSuccess, captureError, {limit: 1, duration: 10}); is called, navigator.device is undefined leading to an error.
Do you have any suggestions how to solve this?
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The call is failing because the Cordova deviceready event has not happened. Something is wrong with the underlying Cordova initialization (what those error messages mean). Try using this sample app (you can find it on the samples and demos page in the XDK): https://github.com/gomobile/sample-media-recording
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks for the feedback. I've come around to using the phonegap Audio-App from the "HTML5+Cordova" section of sample codes. This one worked fine (compared to the other sample app "Media Recording", which has problems with iPhone / Safari).
