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

Easiest way to stop screen publishing from subscriber side

Avatar

Level 2

I want subscriber to be able to send message to publisher to stop sharing his screen. What is the easiest way to implement it? ScreenSharePublisher has method stop with otional parmeter "publisherID", but looking at the code of this function it will not do anthing for other publishers. Currently I have UserQueue for this purposes, but want to know if there is easier approach.

Best Regards, Aleksey

0 Replies

Avatar

Level 10

Hi Aleksey,

I'd likely use a SharedCollection or UserQueue for this - when a user

requests, push an item onto the collection (or add to the Queue). When the

publisher receives it, pop it off the collection, and stop publishing.

nigel