-
Notifications
You must be signed in to change notification settings - Fork 3
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
Does media session work with WebAudio? #10
Comments
Seems like any mention of WebAudio/ |
To handle Web Audio, we need to go through the Audio Focus API as Web Audio doesn't take audio focus by default on all browsers and changing would have significant side effects. |
w3c/mediasession#277 indicates Audio Focus API is not active or being pursued. Is there something more in-reach that can be done to make WebAudio capable of working with MediaSessions? |
The Media WG is reviving the Audio Focus API, retitled the Audio Session API |
Right, I would think that if WebAudio is used with an audioSession type equal to "playback", starting web audio should make the media session becoming active. |
Closing this issue as this now works as expected on Safari: https://jsfiddle.net/pxma30fg/ |
@youennf The mediasession calls in that jsfiddle aren't working for me on the latest stable version of Safari [Version 18.0 (20619.1.26.31.6) on Sequoia 15.0 (24A335)]. Is it a pre-release version that it's now working on? |
Explainer says:
Sounds great!
README says:
Oh...so what determines "when audio playback begins"?
In Chrome 73 it seems that an <audio> or <video> element needs to be streaming audio and the WebAudio/AudioContext use case requires hacks.
The text was updated successfully, but these errors were encountered: