Re: [mediacapture-screen-share-extensions] Auto-pause capture when user switches captured content (#4)

> Those are per-track and cannot tell you whether the source changed or e.g. was just resized.

Just check for `deviceId` in track.getSettings(), no need for using source switch.
Source switch is about deciding whether to use the old tracks or the new tracks.

> That's a fairly recent API with its own [flaws](https://github.com/w3c/mediasession/issues/228#issuecomment-887788017).

I don't see how this particular flaw applies here.

MediaStreamTrack events are where you distribute the info.
CaptureController is a single place for mission critical information (running the callback may actually trigger a freeze of video frame generation).

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


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

Received on Thursday, 3 October 2024 15:54:31 UTC