cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-10489) MediaFile.getFormatData for audio recordings does not work for *.amr files
Date Thu, 08 Dec 2016 00:58:59 GMT


ASF subversion and git services commented on CB-10489:

Commit 26f9ad109552f86f0052a1ca325a03bb07db3d16 in cordova-plugin-media-capture's branch refs/heads/1.4.x
from [~TanaseButcaru]
[;h=26f9ad1 ]

CB-10489 Fix for MediaFile.getFormatData / audio recording support

This closes #53

> MediaFile.getFormatData for audio recordings does not work for *.amr files
> --------------------------------------------------------------------------
>                 Key: CB-10489
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media Capture
>         Environment: Android 4.4, Android 5.1
>            Reporter: Tanase Butcaru
>              Labels: Android
> After resolving this bug ( 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message