MediaCapabilities: query spatial audio with decodingInfo()
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- Start prototyping
WPT details: TBD
Summary
Adds APIs for detecting whether spatial audio formats, i.e., Dolby Atmos and DST:X, can be rendered. Spatial audio rendering describes the UA's ability to to render spatial audio to a given output device; it can be used in conjunction with the stream's mime type to determine support for a specific spatial audio format.
Motivation
To detect spatial audio support, online content providers need to know 1) whether the client can decode the codec to which the spatial audio format is tied, i.e., Dolby Digital Plus for Dolby Atmos, and 2) whether the client's audio device can render spatial audio.Today, online content providers can query decoding but not rendering. This API allows sites to do the latter and enables the following: - Capable clients enjoy high-end media playback experience. - Otherwise, spatial content does not get served to preserve network bandwidth and, potentially, playback quality.
Standards & signals
- Specification: https://w3c.github.io/media-capabilities/#audioconfiguration
- Firefox: No signal
- Safari: Positive
- Web developers: Positive — another citation: https://github.com/w3c/media-capabilities/issues/120#issuecomment-513423361
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1020943
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=mediacapabilities-query-spatial-audio-with-decodinginfo
- 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+MediaCapabilities%3A%20query%20spatial%20audio%20with%20decodingInfo()
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=MediaCapabilities%3A%20query%20spatial%20audio%20with%20decodingInfo()
- Baseline status: https://webstatus.dev/?q=MediaCapabilities%3A%20query%20spatial%20audio%20with%20decodingInfo()
Docs: https://github.com/w3c/media-capabilities/blob/master/explainer.md#spatial-audio
Explainers: https://github.com/w3c/media-capabilities/blob/master/explainer.md#spatial-audio