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

> While showing an “are you sure?” dialog

Wouldn't it be convenient for users to see a preview of what they have picked to answer the "are you sure?" question in an informed manner?

Exposing an API to allow CaptureController to mute all tracks it is related to is orthogonal to the discussion we have on the API design.

> Developers we have spoken to do **not** currently transfer `MediaStreamTracks` to workers.

This pattern is being used by real web sites using data channel and WebCodecs for video conferencing.
Since we want to encourage processing in workers, it is important to have API working nicely there too.

> It is easier to “fan out” a single event, then to coordinate the order of multiple events.
> Applications that need to only take action once per change, as the hypothetical app that wants to show a dialog

This has been discussed earlier in the thread, a simple solution was illustrated at https://github.com/w3c/mediacapture-screen-share-extensions/issues/15#issuecomment-2432450287.
The above coalescing example would work whatever the order of events.
Event ordering is deterministic, 2 can never happen before 1.
The question about clones event order is interesting, I'll file an issue to see what we should do.

> * Fire `”sourcechange”` against the CaptureController and **specify** auto-pause behavior there.
> * Fire `”devicechange”` against the tracks as discussed, but **avoid** auto-pause behavior there.

Within `sourcechange` callback, the surface type exposed via `track.getSettings()` would be the old surface type. This is a potential footgun for web apps.
And the new surface type, a useful piece of information, would not be exposed. This is annoying.

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


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

Received on Friday, 8 November 2024 15:40:48 UTC