You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Markus Hofer (JIRA)" <ji...@apache.org> on 2014/04/04 15:47:14 UTC

[jira] [Commented] (CB-5603) Media Capture: Audio Capture on Android 4.4 generates cancel error

    [ https://issues.apache.org/jira/browse/CB-5603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959969#comment-13959969 ] 

Markus Hofer commented on CB-5603:
----------------------------------

I have the same error on Anroid 4.4.2 and Cordova 3.4.0. Error code 3

>> Intent intent = new Intent(android.provider.MediaStore.Audio.Media.RECORD_SOUND_ACTION); line 196 in Capture.java produces the error.
Seems no recording app is being found

> 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.2#6252)