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

Mark Mitchell commented on CB-13774:
------------------------------------

[~Sujan12] what is broken is described in the issue description. The title is 
just a summary. The steps to reproduce are broken down in the pull request 
[https://github.com/apache/cordova-plugin-media/pull/164]

The use case would be making a simple app to record audio and play it back in 
iOS and Android. The problem is the default settings allow for recording but 
not for playback. The pull request puts this back to "DEFAULT" for both 
platforms so a developer who did not specify settings would still get something 
that works out of the box.

> cordova-plugin-media broken recording and playback functionality 
> -----------------------------------------------------------------
>
>                 Key: CB-13774
>                 URL: https://issues.apache.org/jira/browse/CB-13774
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media
>         Environment: Android
>            Reporter: Mark Mitchell
>            Priority: Blocker
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The problem seems to be that somehow the encoder and decoder are set to 
> different encoding types and are not compatible. Additionally its assuming an 
> encoder is available on the platform and since the interface to the this 
> object does not allow a way to specifying encoding I feel like the default 
> may have been more appropriate. 
> Currently the code is as follows 
> {code:java}
> this.recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); // 
> RAW_AMR);
> this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); //AMR_NB);
> {code}
> But trying to play back the recorded audio fails with a decoder error



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to