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

Re: [mediacapture-fromelement] Should tracks captured from a media element fire "ended" when ending? (#77)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 May 2019 13:39:58 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-496216559-1558964397-sysbot+gh@w3.org>
@Pehrsons The `ended` event should be dispatched when `stop()` is called on a `MediaStreamTrack`, meaning Chromium implementation is not specification compliant, correct?

https://www.w3.org/TR/mediacapture-streams/

> A MediaStreamTrack object is said to end when the source of the track is disconnected or exhausted.
> 
> When a MediaStreamTrack track ends for any reason other than the stop() method being invoked, the User Agent MUST queue a task that runs the following steps:
> 
> 1. If the track's readyState attribute has the value ended already, then abort these steps.
> 
> 2. Set track's readyState attribute to ended.
> 
> 3. Notify track's source that track is ended so that the source may be stopped, unless other MediaStreamTrack objects depend on it.
> 
> 4. Fire a simple event named ended at the object.


-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/77#issuecomment-496216559 using your GitHub account
Received on Monday, 27 May 2019 13:39:59 UTC

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