Avatar

Level 4

i'm allowing individual on/off controls for listening to users' audio streams.

AudioSubscriber.publisherIDs is the way to control which streams you're playing. by default it's set to empty which plays all audio streams.

to stop playing an audio stream, you remove that stream's publisher id from .publisherIDs - but first you have to populate it with all of the ids that you *do* want to play.  i can manage that.

what i'm confused about is what to do when you don't want to play anyone's stream - setting .publisherIDs to empty would play all of the streams according to the docs.  in that case, should i use AudioSubscriber.close() , and then recreate an AudioSubscriber instance and use .subscribe() when i want to start playing one or more streams again?