-
Notifications
You must be signed in to change notification settings - Fork 29
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
Status of AudioFocus API #277
Comments
I don't think we've touched this in a while and don't currently have plans to. That said, I recall @jernoble giving some historical context at the last meeting but I don't recall exactly what it was |
Thanks - the notes from the last meeting are here. |
From those notes,
|
In all browsers today, the mediaSession API has been limited to work only when there is an Audio element (with a valid src) in the scope. Because of this, the media controls were not available while playing with the Aurora.js backend. This is now worked around by initializing a dummy Audio element when playback with Aurora.js starts. On Firefox, there was such an extra requirement that the Audio element must not be completely silent (i.e. just silent audio src didn't work, nor setting the volume to exactly 0). Hence, our dummy audio content actually has some sound but it's played in extremely quiet volume, making it impossible to hear. The proper solution for the issue would be for the browsers to implement the audio focus API (see w3c/mediasession#277). This has been first suggested years ago but so far there's no known progress.
Audio Focus is now called Audio Session, draft at https://w3c.github.io/audio-session/. Just need to figure out what Media Session needs to say about it. |
The explainer talks about Audio Focus, we should update it to point to Audio Session. Related issue: w3c/audio-session#17. |
In section 5.2 Routing, the Media Session spec says:
What's the current status of the AudioFocus API. Should we still mention this in the Media Session spec?
The text was updated successfully, but these errors were encountered: