API-Examples icon indicating copy to clipboard operation
API-Examples copied to clipboard

Handling when user click STOP SHARE button on Chrome?

Open 03hgryan opened this issue 1 year ago • 1 comments

How can I detect this event so that I can unpublish the stream?

03hgryan avatar Mar 07 '23 08:03 03hgryan

if i remember correctly there's an "ended" event on the screenshare track emitted. you can rely on that one.

plutoless avatar Mar 07 '23 13:03 plutoless