Detect when an HTML5 video finishes -


how detect when html5 <video> element has finished playing?

you can add event listener 'ended' first param

like :

<video src="video.ogv" id="myvideo">   video not supported </video>  <script type='text/javascript'>     document.getelementbyid('myvideo').addeventlistener('ended',myhandler,false);     function myhandler(e) {         // want after event     } </script> 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -