Expand my Community achievements bar.

Mute audio of the AudioSubsriber?

Avatar

Former Community Member

Is it possible to mute the audio of the AudioSubscriber component? I have an application where I want to mute the audio of all the subscribers when I start publishing the audio stream.

Thanks!

2 Replies

Avatar

Employee

Hi,

I havent tried this, but using AudioSubscriber.setLocalVolume(0,

publisher_ID_to_be_muted) might help.

Thanks

Arun

Avatar

Former Community Member

Arun and RituKnowsFlex,

That's what I did for a local volume slider and it works great!

If you want to mute all subscribers, AudioSubscriber.setLocalVolume(0); should do the trick!

Matt