webkitAudioContext event

423 Views Asked by At

I used "ended" event to execute some javascript code on the end of playback for html5 audio.

document.getElementById('audio').addEventListener("ended",function() {
 // code
});

However, i needed low latency and i decided to use the lowlag plugin (http://lowlag.alienbill.com/ ), which uses webkitAudioContext for webkit browsers.

Is possible to detect when the audio playback has finished with webkitAudioContext?

0

There are 0 best solutions below