New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification needed on ended HTMLMediaElement with MediaStream becoming active #519
Comments
@Pehrsons Does the way #637 plugs us into the ended playback definition give any insight or clarity on how to proceed here? |
Maybe, because mediacapture-main no longer says "set its ended attribute", but leaves this to the media element spec instead. That means the media element spec also dictates when to unset the ended attribute. It says this about having ended playback (which is when
If we've ended playback and the stream becomes active/audible (video/audio), that might mean that the Looking at "media resource" the spec says:
So the end of the media resource can only be extended if when the MediaStream becomes active, those new AudioTrack and VideoTrack instances become enabled or selected, respectively. There are AudioTracks and VideoTracks becoming enabled/selected without the application interacting, in the resource selection algorithm with mode
Note that the entire resource selection algorithm is aborted when the entire media resource is aborted:
The final step:
I guess the remaining question is whether a MediaStream becoming inactive/inaudible means that it is exhausted? I guess the Can someone sign off on this making sense? If so I think we can close this. Though it would probably be useful with a note in mediacapture-main noting this, because it took some digging to get through. |
@guidou did you have an opinion here? |
I agree with the notion that a MediaStream never becomes permanently exhausted and therefore an ended element stops being ended when the MediaStream becomes active. |
Spec says:
This explains what a user can see and hear, but not how the HTMLMediaElement acts in other aspects.
For instance,
This is related to #453 but is more specifically regarding the state in between ending playback and starting it again.
The text was updated successfully, but these errors were encountered: