Re: [mediacapture-main] Move "global" internal slots to MediaDevices, and fix "relevant object" links (#939)

> 2\. A source only stops when _ALL_ its tracks across the entire user agent have ended

A UA can stop a source and all tracks will get ended.
This happens when for instance the camera is unplugged.

>, so [stop all sources](https://w3c.github.io/mediacapture-main/getusermedia.html#dfn-stop-all-sources) on ONE global object using [[[mediaStreamTrackSources]]](https://w3c.github.io/mediacapture-main/getusermedia.html#dfn-mediastreamtracksources) doesn't work.

I do not see why it would not work, getUserMedia creates a source that gets associated to ONE global object.
It is true that in the current spec, ending the tracks is needed to not trigger needless ended events at unload time.
For transferred tracks, stopping the source will trigger the ended event, which does not seem bad.


-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/939#issuecomment-1458807752 using your GitHub account


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

Received on Tuesday, 7 March 2023 20:18:26 UTC