Re: [mediacapture-fromelement] MediaStreamTrack does not dispatch "ended" event at Chromium when src of HTMLMediaElement is changed, Firefox does dispatch "ended" event; which implementation is correct? (#78)

The spec says 

> A captured MediaStreamTrack ends when playback ends (and the ended event fires) or when the track that it captures is no longer selected or enabled for playback. A track is no longer selected or enabled if the source is changed by setting the src or srcObject attributes of the media element. 

So this makes it clear that the Firefox behavior is spec compliant and Chrome's is not.
Since this refers to the track's ended event and not the element's, none of my concerns about the way the element ended event is defined in w3c/mediacapture-main apply.


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

Received on Tuesday, 14 May 2019 15:52:06 UTC