Wowza Community

Set the stream volume instead of the system volume

For my use case, I have multiple sources of audio. I’d like to be able to set the volume of the incoming stream, without modifying the system audio or the audio levels of these other sources.

The setVolume method of the WOWZPlayerView class currently appears to set the entire device’s volume. I observe the behavior in the 1.7 and 1.8 versions of the SDK, as well as in the GoCoder sample app.

Is setting the stream audio something that is currently supported in the android SDK?

Checking for you…

Thanks! Let me know if you need any further details. I tested this on a Samsung Galaxy S6.

Are you using multiple sources of audio in the same broadcast or is it like a radio station workflow where users can select an audio track?

Sorry for the confusion. The other sources of audio are unrelated to the broadcast. The broadcast is embedded into a page with other content that plays audio (eg: UI, media players, voice chat).

The target goal is to allow users to control the volume of the broadcast, without affecting any other content on the page. The setVolume method seems to set the system volume.

Thanks @Jeffrey Yin. Yes, I have confirmed that it does adjust the system volume as you suspected. There is no way at this time to control the volume per broadcast through the SDK- sorry about that being an inconvenience. The only suggestion our engineers had was to customize the player if that is possible and allow controls for volume.

I’m not sure if you are using Wowza Player or if you want to show the controls but it’s an option. Sorry we couldn’t be of more help.