You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mark Mitchell (JIRA)" <ji...@apache.org> on 2018/01/11 17:45:01 UTC
[jira] [Created] (CB-13774) cordova-plugin-media broken recording
and playback functionality
Mark Mitchell created CB-13774:
----------------------------------
Summary: 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
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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org