W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2019

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)

From: guidou via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 May 2019 15:28:39 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-490951975-1557415717-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:23 UTC