w3c / audio-session

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

Should users be allowed to override 'playback' with 'ambient'? #7

Open tguilbert-google opened 1 year ago

tguilbert-google commented 1 year ago

If two sites both mark their AudioSessionType as playback, will a user be able to override it to be ambient instead?

E.g. if there is music playing on one site and a user wants to play a spoken word video on a different site, and both sites are using playback, will there be a way to allow users to play the music and the video simultaneously?

This might be more relevant for desktop than mobile.

youennf commented 1 month ago

On desktop, I believe that, by default, two AudioSessions of type playback on different tabs will not suspend each other. I believe the UA is free to implement what it wants there.

Some UAs already provide ways to mute a tab. I guess it would be ok for a UA to allow user to make a tab as interruptible or mixing with others.