Browser Audio Support
Updated: Jan 14, 2025
This page outlines audio support for the Browser.
For example:
async function isDolbySupported() {
const mediaConfig = {
type: 'media-source',
audio: {
contentType: 'audio/mp4; codecs="ac-3"',
spatialRendering: true,
}
}
const results = await navigator.mediaCapabilities.decodingInfo(mediaConfig);
return results.supported;
}
Supported codecs:
Note the following limitations:
- AC4 is not supported at this time.
- Encrypted audio is not supported at this time.