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: Tue, 14 May 2019 15:52:05 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-492297460-1557849124-sysbot+gh@w3.org>
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

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