Re: [mediacapture-screen-share-extensions] Auto-pause for Captured Surface Switching (2nd edition) (#15)

> allow them to pause the capture at the source level.

One usecase is to protect user from oversharing the display stream during a VC.
In that case, the point is to keep the display local preview but disable sending the display stream to remote users.
And then present UI for the user to restart sharing to remote users.

The granularity in that use case is track, not source.

> Ensuring that all tracks are paused individually puts an extra burden on application developers when tracks are cloned.

This offers more flexibility as well which is useful for the above usecase.
If the idea is to mute the source, `navigator.mediaSession.setScreenshareActive` is a solution.
There are other JS based solutions like keeping track of all clones, which is anyway a good practice when the page wants to stop capture.

Please also note that if track is in a worker, it is more convenient to be notified in the worker.

Thoughts?

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share-extensions/issues/15#issuecomment-2462622580 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 7 November 2024 16:06:02 UTC