← Back

Play Dolby AC-3 audio using the <audio> tag

This demo showcases browser-based decoding of Dolby AC-3 audio using a WebAssembly pipeline. Since most browsers do not natively support AC-3 due to licensing constraints, this solution uses a WebAssembly version of the decoder to make playback possible without plugins or server-side conversion.

As of the publication date, this format is not natively supported by Firefox, Chrome or Safari.

Code snippet

We decode the Dolby AC-3 audio Canyon-5.1-48khz-448kbit.ac3 using the universal audio tag :

<audio is="universal-audio_1" src="../test_sequences/Canyon-5.1-48khz-448kbit.ac3" using="solver_1"
        with="liba52_1" controls> </audio>

Specifications :

The specifications of the test sequence are :

Format ATSC A/52a (aka Dolby Digital AC-3)
FileSize 2,1 MB
Duration 37.984 sec
Overall BitRate 448000