You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tanase Butcaru (JIRA)" <ji...@apache.org> on 2016/02/01 00:02:39 UTC

[jira] [Updated] (CB-10489) MediaFile.getFormatData for audio recordings does not work for *.amr files

     [ https://issues.apache.org/jira/browse/CB-10489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tanase Butcaru updated CB-10489:
--------------------------------
    Summary: MediaFile.getFormatData for audio recordings does not work for *.amr files  (was: MediaFile.getFormatData for audio recordings does not work)

> MediaFile.getFormatData for audio recordings does not work for *.amr files
> --------------------------------------------------------------------------
>
>                 Key: CB-10489
>                 URL: https://issues.apache.org/jira/browse/CB-10489
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Media Capture
>         Environment: Android 4.4, Android 5.1
>            Reporter: Tanase Butcaru
>
> After resolving this bug (https://issues.apache.org/jira/browse/CB-10488) I still could find a case where this feature does not work properly.
> iOS behaves as it should, only on Android the issue manifests.
> On my older device with Android 4.4, the sound recorder app has the option to change the file type and if I set .wav instead of .amr, the recorded file is read & its data is returned as it should (no "0" value for duration, for eg.).
> So the problem might be the .amr files.
> i tried to set the MIME type before launching the sound recorder app:
> {code}
> intent.putExtra(android.provider.MediaStore.Audio.Media.ENTRY_CONTENT_TYPE, "audio/aac");
> {code}
> ... but with no success. Tried with _MIME_TYPE_ and _CONTENT_TYPE_ too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org