<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
video{
width:100%;
height:330px
}
</style>
</head>
<body>
<p>Try to play this video</p>
<video controls>
<source src="/hawk.mp4" type="video/mp4">
</video>
<p>Playback position: <span id="point"></span></p>
<script>
var x = document.getElementsByTagName("video")[0];
x.ontimeupdate = function(){
document.getElementById("point").innerHTML = +x.currentTime;
}
</script> </body>
</html>