Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android MediaRecorder set audio volume

I'm not that familiar with android programming and would like to set the audio volume while (or before) recording a video with MediaRecorder. Is there a way to do that? Or is there a better way to record a video with variable audio volume, instead of using MediaRecorder?

like image 834
C0dR Avatar asked Mar 16 '26 03:03

C0dR


1 Answers

There is no way to set volume while recording using MediaRecorder. But you can set volume while playing using MediaPlayer by using the method setVolume(float, float)

like image 152
stinepike Avatar answered Mar 19 '26 01:03

stinepike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!