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:
Browser | Firefox | Edge | Opera | Chrome |
Delay (s) | 1 - 3 | 1 - 3 | 15 | 15 |