Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It might be beneficial to change the recording format on Android. #114

Open
whdals0 opened this issue Aug 13, 2024 · 1 comment
Open

It might be beneficial to change the recording format on Android. #114

whdals0 opened this issue Aug 13, 2024 · 1 comment

Comments

@whdals0
Copy link

whdals0 commented Aug 13, 2024

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.

@AhmedYasser20
Copy link

i have problem with current version, it records screen without the sound of app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants