SelectAudioOutput API
- Category
- WebRTC
- Type
- Chromium catches up
- Status
- In development (Chrome In development)
- Intent stage
- None
WPT details: https://wpt.fyi/results/audio-output
Summary
This API prompts the user to select a specific audio output device. This API allows the user to select an audio output device device per-origin when they have multiple devices available without giving access to "microphone" permissions. Instead "speaker-selection" permissions should be allowed for the use of this API. This chosen device can then be used by the setSinkId API for audio output. Currently, this can be done by using getUserMedia() API but that needs microphone permissions to allow the selection. This fails to work when there are no microphones and only audio output devices.
Standards & signals
- Specification: https://w3c.github.io/mediacapture-output/#dom-mediadevices-selectaudiooutput
- Firefox: Shipped/Shipping
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/372214870
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=audio-output
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+SelectAudioOutput%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=SelectAudioOutput%20API
- Baseline status: https://webstatus.dev/?q=SelectAudioOutput%20API