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