Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to detect if an video is over js html

<video src="video.ogv" id="myVideo">
  video not supported
</video>

<script type='text/javascript'>
    document.getElementById('myVideo').addEventListener('ended',myHandler,false);
    function myHandler(e) {
        // What you want to do after the event
    }
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #detect #video #js #html
ADD COMMENT
Topic
Name
1+4 =