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

Register default action for when no media session is active #348

Open
lucas42 opened this issue Oct 14, 2024 · 0 comments
Open

Register default action for when no media session is active #348

lucas42 opened this issue Oct 14, 2024 · 0 comments

Comments

@lucas42
Copy link

lucas42 commented Oct 14, 2024

Some platforms have a default behaviour for when a media key is pressed but there is no media session currently active.
For example, pressing play on macOS with no active media will open the Music (formerly iTunes) application.
This default can be switched to other native applications, but I've not yet found a way for a web-based media player to be set as default.

I'd like to see a method similar to Navigator.registerProtocolHandler(), which would allow a web-based media player to be offered as the default for the play MediaSessionAction.

[My understanding is that current references to "default handler" in the spec only apply when there is an active media session. This new default would instead apply when no media session is active.]

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

No branches or pull requests

1 participant