[mediacapture-main] Clarification needed on ended HTMLMediaElement with MediaStream becoming active

Pehrsons has just created a new issue for https://github.com/w3c/mediacapture-main:

== Clarification needed on ended HTMLMediaElement with MediaStream becoming active ==
Spec says:

> Note that once ended equals true the HTMLMediaElement will not play media even if new MediaStreamTrack's are added to the MediaStream (causing it to return to the active state) unless autoplay is true or the web application restarts the element, e.g., by calling play()

This explains what a user can see and hear, but not how the HTMLMediaElement acts in other aspects.
For instance,
- Should a media element where a live track appears progress readyState and raise events as it does so?
  - If yes, how should the media element handle the stream going inactive again before playback has started?
- Or should all events and state changes be ignored until playback starts through play() or autoplay?
  - This would be different from initial playback of the MediaStream (where readyState advances before play()), as it would, for example, always [raise "waiting" on play()](https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:media-element-35).

This is related to #453 but is more specifically regarding the state in between ending playback and starting it again.

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/519 using your GitHub account

Received on Friday, 25 May 2018 09:22:26 UTC