HTML5 Audio addEventListener
addeventlistener, audio, html
Solution
You can find them at the w3school website listed under the Media Events here! Next time try to google these things. Its far easier than to clutter the community with questions that a simple search would have accomplished.
To add an event listener to audio element just simpy do this
var audio = document.createElement("audio");
audio.src = "audio/sample.mp3";
audio.addEventListener("canplaythrough", function () {
alert('The file is loaded and ready to play!');
}, false);
instead of `canplaythrough` you can use all of the media events i posted above from W3.
Problem
can someone know where to find the event listener list for HTML5 audio?