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

> I don't think this would work, because the old track would not get any new frames, even if it's ended.

The point would be to delay sending frames to the old track until the event listeners are executed.
This gives enough time for the web app to stop the old track or continue using it.

I see two main benefits:
1. We could remove `enableManualSwitching()`. The old track would stay in the legacy mode, as if `enableManualSwitching()` would not have been called. The new track would be created as if `enableManualSwitching()` would have been called.
2. This is more convenient to web developers as they might only have to deal with audio, video setup will stay the same.

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


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

Received on Friday, 29 September 2023 09:22:50 UTC