<!DOCTYPE html>
<html lang="en-US">
<body>
<video style="width:100%;height:330px" onwaiting="myFunction()" controls>
<source src="/hawk.mp4" type="video/mp4">
</video>
<script>
function myFunction(){
alert("Please wait, video is buffering");
}
</script>
<p><strong>Note</strong> :Play the video and try to move the seekbar quickly, so that you can experience onwaiting event.</p> </body>
</html>