streaming-android icon indicating copy to clipboard operation
streaming-android copied to clipboard

How to control the audio playback volume?

Open liuzhen2008 opened this issue 7 years ago • 1 comments

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?

liuzhen2008 avatar Jun 16 '17 22:06 liuzhen2008

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

HoldenMills avatar Jun 21 '17 18:06 HoldenMills