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

@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