You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setter definition in https://wicg.github.io/mediasession/#dom-mediasession-playbackstate doesn't clearly say what to do. It would be good if as much of the normative requirements as possible were in the algorithms reachable from API entry points, not in the model description.
Thanks for that extra context, I had totally the wrong idea about this was. In addition to examples, there are a few things in the spec text I think would be useful:
Define in more detail how actual playback state is calculated. It would presumably be "playing" or "paused" if that's set, or calculated based on media elements and their states if not. People will reach for playbackState when the default is wrong, so it's best if browsers agree on what that default is.
Editorial: Define "playback state" as an internal concept of MediaSession alongside metadata and use that to define the playbackState attribute and the "actual playback state".
Related to #175
https://wicg.github.io/mediasession/#playback-state-model says "playback state is a hint from the page and and MAY be overridden by the user agent"
The setter definition in https://wicg.github.io/mediasession/#dom-mediasession-playbackstate doesn't clearly say what to do. It would be good if as much of the normative requirements as possible were in the algorithms reachable from API entry points, not in the model description.
https://wicg.github.io/mediasession/#media-session-routing doesn't reference playback state, so it's not clear if it should have any impact at all.
Concretely, what happens when the hint doesn't match the actual state?
playbackState
to "paused" do anything?playbackState
to "playing" do anything?playbackState
to "none" or "paused" do anything?If the API ever has any effect, it does look like a miniature audio focus API, or have I misunderstood?
The text was updated successfully, but these errors were encountered: