w3c / audio-session

https://w3c.github.io/audio-session/
Other
1 stars 2 forks source link

Audio focus enforcement on desktop platforms #12

Open steimelchrome opened 1 year ago

steimelchrome commented 1 year ago

The explainer states that certain AudioSessionTypes should pause other audio (e.g. "transient-solo"). Is it a requirement that the user agent enforce this on all platforms when the website sets this type? I know on desktop today Chrome purposely doesn't enforce audio focus since desktop is more multi-task-friendly and the user does not expect audio to prevent other audio.

youennf commented 1 month ago

I would hope we can get agreement on enforcing focus within a top level browsing context, in particular if we allow to create AudioSessions.

With regards to enforcing focus between tabs, I think it should indeed be left to the UA.