Hello,
Welcome to our Microsoft Q&A platform!
The MediaPlayer API is recommended for balancing the output of audio streams within an application. If you want to change the user settings of volume, please use AudioManager.setStreamVolume(int, int, int)
method instead.
Here is the related doc, you could refer to it:
https://developer.android.com/reference/android/media/MediaPlayer.html#setVolume(float,%20float)
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.