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)

This is known bug in Chromium (https://crbug.com/854991).
That said, one of the reasons we haven't fixed it in Chrome is that there some mismatch in how the ended  attribute is defined in mediacapture-main and how it is defined in HTML.
In mediacapture-main it is considered an attribute that can be directly set/unset.
In [HTML](https://html.spec.whatwg.org/multipage/media.html#dom-media-ended) it is not defined as an attribute to be arbitrarily set by the implementation, but instead it is defined in terms of the readyState, current playback position, direction of playback, the loop attribute and direction of playback.
Of course, one way to implement it is to completely ignore the HTML rules when the element is playing a MediaStream, but I would like to see more alignment with the HTML definition. 

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

Received on Thursday, 9 May 2019 15:28:40 UTC