Currently changing the audio stream via setCategory does not change the volume control for Android devices. This causes the device's volume buttons to adjust volume for the wrong stream (generally the default ringer).
Fix:
When setting Sound category, also set the volume control so that pressing the volume buttons has the desired effect for the RN app.
This is the behavior of apps like Youtube, Pandora, and Spotify to ensure the best user experience when playing audio.
Thanks this works great. This really deserves to be merged otherwise you can't control the volume of an app. Sometimes sounds are way to loud and unbearable.
Issue:
Currently changing the audio stream via
setCategory
does not change the volume control for Android devices. This causes the device's volume buttons to adjust volume for the wrong stream (generally the default ringer).Fix:
When setting Sound category, also set the volume control so that pressing the volume buttons has the desired effect for the RN app. This is the behavior of apps like Youtube, Pandora, and Spotify to ensure the best user experience when playing audio.