Re: [mediacapture-fromelement] Define behavior when a cycle is detected (#85)

I think this is well defined by the html spec, given that #24 goes through.

In the direct and indirect cases, [the load algorithm will remove all selected/enabled tracks](https://html.spec.whatwg.org/multipage/media.html#loading-the-media-resource:forget-the-media-element's-media-resource-specific-tracks), such that the corresponding captured MediaStreamTracks end, when the srcObject attribute gets assigned. These cases shouldn't lead to a cycle.

A case involving WebAudio acts the same, as long as it involves assigning the srcObject attribute.

Cases that allow letting tracks through would involve adding a track from the captureStream() stream to the media element's srcObject stream. IIRC for video this adds a track to the VideoTrackList, which ends when selected; and for audio a track is also added and enabled automatically -- and tracks that occur multiple times will render louder.

-- 
GitHub Notification of comment by Pehrsons
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/85#issuecomment-652648904 using your GitHub account

Received on Wednesday, 1 July 2020 21:11:47 UTC