- From: Tove Petersson via GitHub <sysbot+gh@w3.org>
- Date: Thu, 07 Nov 2024 14:39:21 +0000
- To: public-webrtc-logs@w3.org
After further deliberations, I believe that it would be easier for applications to be notified by the CaptureController and to allow them to pause the capture at the source level. Ensuring that all tracks are paused individually puts an extra burden on application developers when tracks are cloned. Furthermore, the setup an application needs to do may have a wider scope than individual tracks, e.g., updates to the UI. From the discussion in this thread, it also seems more inline with existing semantics to pause on the source level. We could model this on `VideoTrackGenerator.muted`, which I believe have the behavior we seek: ``` controller.setSurfaceSwitchingCallback(() => { controller.muted = true setup().then(controller.muted = false); }); ``` Besides being easier to understand and use than returning a promise, this approach would also give applications the flexibility to use other methods for pausing if they so wish, e.g., setting `enabled = false` on a track or use any of the other methods discussed earlier in this thread. -- GitHub Notification of comment by tovepet Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share-extensions/issues/15#issuecomment-2462403144 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 14:39:22 UTC