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

Android - Set Volume Button Controls On Android Audio Stream #693

Closed
wants to merge 1 commit into from

Conversation

RadicalRoy
Copy link

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.

@UberMC
Copy link

UberMC commented Nov 10, 2020

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.

@antoine-pous antoine-pous mentioned this pull request Dec 21, 2020
@RomualdPercereau
Copy link
Collaborator

Already merged in #713

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

Successfully merging this pull request may close these issues.

3 participants