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

> create a separate issue to discuss how an application can pause the frame delivery without emitting black frames?

Let's discuss this in this thread.

I do not think we would want to pause frame generation globally until user decides, as web page might want to have a live preview for user to decide what to do. There might be a use for asynchronously pausing on a per track's scope but this would not work with the current `postSurfaceSwitchingHandler`.

For pausing RTCRtpSender without black frames in a synchronous way, I think the principle would be the following:
- clone the sender's track
- stop the sender's track, maybe use replaceTrack to provide synthetic video to remote users
- wait for user's input
- call replaceTrack with the track clone to restart.

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


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

Received on Tuesday, 29 October 2024 14:13:41 UTC