<!DOCTYPE html>
<html lang="en-US">
<body>
<video style="width:100%;height:330px" onpause="myFunction()" controls>
<source src="/hawk.mp4" type="video/mp4">
</video>
<script>
function myFunction(){
alert("Video is paused");
}
</script>
<p><strong>Note</strong> : Play and Pause the video</p> </body>
</html>