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

The `onsourceswitch` or `onnewsource` approach seems sufficient to me to support both switch and injection models.

The small feedback I would give is that having these as events might not be great.
A callback might be better instead so that there is only one receiver that is responsible to deal with it, for instance closing the new stream/tracks.


Something like `captureController.processSourceSwitch(stream => { });` or `captureController.processSourceSwitch(null);`


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


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

Received on Wednesday, 25 September 2024 00:17:53 UTC