javascript - Adding Event Listener is not working in Chrome for audio tags -


i developing music application playing songs on browser using html5. after creating playlists wanted play songs 1 one. using eventlistener work done. code given below :

document.getelementbyid('myplayer').addeventlistener('ended',function() {     alert("hi");       }); 

here myplayer id of audio tag when 1 song completed wanted put next song on player. method not getting triggered unable see alert on screen when song ends. using google chrome v28 this. can me this.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -