Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Mute audio of the AudioSubsriber?

RituKnowsFlex
Level 1
Level 1

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
aponnusa
Employee
Employee

Hi,

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

publisher_ID_to_be_muted) might help.

Thanks

Arun

phaseblue
Level 3
Level 3

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