HTML5 audio for live streaming

One can add live audio streaming wiith the following HTML5 tag:

    <audio controls autoplay preload="none">

        <source src="/audio.wav" type="audio/wav" >

        Your browser does not support the audio.

    </audio>

Live streaming is different from file playing in that the browser does know how much data it will get and has to decide when to start playing.  The latency varies among different browsers:

BrowserFirefoxEdgeOperaChrome
Delay (s)1 - 31 - 31515

This article was updated on 20:53:03 2024-07-11