<!DOCTYPE html> <html> <body> <video controls onloadeddata="myFunction()"> <source src="/static/demo/video/shanghai.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> <script> function myFunction() { alert("Browser has loaded the current frame"); } </script> </body> </html>