First of all, thank you for creating such a great library.
While using it, I encountered an issue and would like to request a modification.
Currently, it seems the following settings are being used:
mMediaRecorder?.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder?.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
However, when using the AMR_NB codec, audio cannot be played in Chrome and Edge browsers (although the video displays correctly).
By changing these settings to:
mMediaRecorder?.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mMediaRecorder?.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
I was able to achieve proper recording and audio playback on Android 13 and 14 devices.
First of all, thank you for creating such a great library.
While using it, I encountered an issue and would like to request a modification.
Currently, it seems the following settings are being used:
mMediaRecorder?.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mMediaRecorder?.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
However, when using the AMR_NB codec, audio cannot be played in Chrome and Edge browsers (although the video displays correctly).
By changing these settings to:
mMediaRecorder?.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mMediaRecorder?.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
I was able to achieve proper recording and audio playback on Android 13 and 14 devices.I hope this can be included in the next update.