keyboard_backspace wifi_off

AudioSession API

This feature is not (yet) supported on your device

The Audio Session API configures how audio from web apps should mix with audio from native apps.

Demo

On a supporting device, play audio from another native app (for example, Music on iOS) and then also play the audio below with the radiobutton "auto" selected. You will notice the audio from the other app will be paused.

If you restart the audio from the other app and then play the audio below again with the radiobutton "transient" selected, you will notice the audio from the other app will not be paused but will be mixed with this audio.

If you do it the other way around and start audio from this app first and then play audio from another app with the radiobutton "auto" selected, you will notice that the audio from this app will be paused.

If you play audio from this app and then switch to another app with the radiobutton "transient" selected, the audio will be paused but if you then switch back to this app, the audio will resume playing. If you keep the audio from the other app playing when you switch back to this app, the audio will be mixed with the audio from the other app.

Documentation

Media Session API on MDN

Browser support

MediaSession API on caniuse.com
What PWA Can Do Today A showcase of what is possible with Progressive Web Apps today