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
Post a Comment