<video
id="video-active"
class="video-active"
width="640"
height="390"
controls="controls">
<source src=http://www.qiyeyunshang.com/skin/gw/image/nopic.gif type="video/mp4">
</video>
<div id="current">0:00</div>
<div id="duration">0:00</div>
JS:
$(document).ready(function(){
$("#video-active").on(
"timeupdate",
function(event){
onTrackedVideoframe(this.currentTime, this.duration);
});
}
function onTrackedVideoframe(currentTime, duration){
$("#current").text(currentTime);
$("#duration").text(duration);
}