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

How to control the audio playback volume? #82

Open
liuzhen2008 opened this issue Jun 16, 2017 · 1 comment
Open

How to control the audio playback volume? #82

liuzhen2008 opened this issue Jun 16, 2017 · 1 comment

Comments

@liuzhen2008
Copy link

I am trying to modify the volume for an "R5Stream", specifically, I would like to be able to mute or unmute it without tinkering with the system volume.

(Much like how in MediaPlayer, it provides a setVolume method that doesn't interfere with the system volume).

Is this currently possible with the red5pro android/iOS sdk?

@HoldenMills
Copy link
Contributor

Hello,
We have a working example for iOS.
We don't have a working example for muting the audio stream in an Android app, but you could write your own using the muteAudio function in the R5AudioController.
https://www.red5pro.com/docs/static/android-streaming/classcom_1_1red5pro_1_1streaming_1_1media_1_1_r5_audio_controller.html#ab301bab39f2b9cd3c05e7cc18bed9722

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