'Play audio from byte array continuously

let url = URL.createObjectURL(new Blob(data))
let audio = new Audio(url)
audio.play()

If I push data into array, audio doesn't continue. Actually, I'm going to stream audio from byte array.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source