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

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

From: Andreas Pehrson via GitHub <sysbot+gh@w3.org>
Date: Thu, 18 Apr 2019 09:32:55 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-434677007-1555579973-sysbot+gh@w3.org>
Pehrsons has just created a new issue for https://github.com/w3c/mediacapture-fromelement:

== Should tracks captured from a media element fire "ended" when ending? ==
Spec reads:
> A captured MediaStreamTrack ends when [playback ends](http://www.w3.org/TR/html5/embedded-content-0.html#ended-playback) (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. The steps in [MediaStreamTrack.stop()](https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-stop) are performed on the MediaStreamTrack when it ends.

The steps for `MediaStreamTrack.stop()` do not fire "ended". IIRC this was motivated by there not being a need since the application knows it called stop anyway.

I would have expected us to fire "ended" here. It does seem like the original intention per https://github.com/w3c/mediacapture-fromelement/issues/23#issuecomment-277104443.

Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/77 using your GitHub account
Received on Thursday, 18 April 2019 09:32:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:56 UTC