Skip to content
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

The active media session might not be the only one being notified of actions #285

Closed
youennf opened this issue Aug 17, 2022 · 0 comments · Fixed by #287
Closed

The active media session might not be the only one being notified of actions #285

youennf opened this issue Aug 17, 2022 · 0 comments · Fixed by #287

Comments

@youennf
Copy link
Contributor

youennf commented Aug 17, 2022

As discussed in #274 (comment), non active MediaSessions may receive notification of actions.
This for instance happens in Chrome when the user is interacting with browser UI that is unambiguously tied to a MediaSession (potentially not the active one).

The MediaSession spec is currently not aligned to Chrome implementation and it might be good to update the spec accordingly.
For instance https://w3c.github.io/mediasession/#handle-media-session-action will only trigger actions on the active media session and will abort at step 1 if the active media session is null.

One possibility is for the Media Session Action source to be tied to a specific Media Session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant