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

Using MediaSession without playing audio? #328

Open
pixelblob opened this issue May 8, 2024 · 2 comments
Open

Using MediaSession without playing audio? #328

pixelblob opened this issue May 8, 2024 · 2 comments
Labels

Comments

@pixelblob
Copy link

Is it possible to use MediaSession without playing audio? I seem to be able to get away with this on chrome by using something like this: https://github.com/anars/blank-audio but firefox doesnt seem to think anything is playing... My usecase is controlling music that is not playing through the browser and using the browser as a sort of control panel for that external source of music.

@marcoscaceres
Copy link
Member

So, no, it's really intended to play audio... at the same time, you could, in theory play a file with no actual sound. However, this is not really the intended use of the API, so Firefox might be getting clever and realizing the API is being (somewhat) misused.

@jan-ivar, thoughts?

@jan-ivar
Copy link
Member

@pixelblob What are the symptoms and repro steps here? Does Firefox not play silent mp3 files?

cc @alastor0325 who might know more about Firefox behavior.

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

No branches or pull requests

3 participants