<!DOCTYPE html> <html> <body> <video id="video1" controls="controls"> <source src="/static/demo/video/mov_bbb.mp4" type="video/mp4"> <source src="/static/demo/video/mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <script> myVid=document.getElementById("video1"); myVid.onloadeddata=alert("Browser has loaded the current frame"); </script> </body> </html>