John M. Wargo created CB-5603:
---------------------------------
Summary: Media Capture: Audio Capture on Android 4.4 generates
cancel error
Key: CB-5603
URL: https://issues.apache.org/jira/browse/CB-5603
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.2.0
Environment: Nexus 7 running Android 4.4
Reporter: John M. Wargo
When I try to use Media Capture to capture an audio file, the capture API
generates a cancelled error:
{"message":"Canceled.","code":3}
as shown in the following log entries:
12-09 09:59:12.140: I/chromium(23394): [INFO:CONSOLE(112)] "Entering
onCaptureError", source: file:///android_asset/www/index.html (112)
12-09 09:59:12.150: D/CordovaLog(23394): file:///android_asset/www/index.html:
Line 114 : {"message":"Canceled.","code":3}
12-09 09:59:12.150: I/chromium(23394): [INFO:CONSOLE(114)]
"{"message":"Canceled.","code":3}", source:
file:///android_asset/www/index.html (114)
12-09 09:59:12.150: D/CordovaLog(23394): file:///android_asset/www/index.html:
Line 143 : User likely cancelled the capture process.
12-09 09:59:12.150: I/chromium(23394): [INFO:CONSOLE(143)] "User likely
cancelled the capture process.", source: file:///android_asset/www/index.html
(143)
12-09 09:59:12.200: D/CordovaLog(23394): file:///android_asset/www/index.html:
Line 145 : Leaving onCaptureError
12-09 09:59:12.200: I/chromium(23394): [INFO:CONSOLE(145)] "Leaving
onCaptureError", source: file:///android_asset/www/index.html (145)
I'm guessing that this is because the nexus doesn't have a voice recorder, but
I'm expecting the API to return an CaptureError.CAPTURE_NOT_SUPPORTED rather
than CaptureError.CAPTURE_NO_MEDIA_FILES.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)