How to play video on Specific time?

<!DOCTYPE html>
<html>
<head>
<title>Play Video Specific Time</title>
</head>
<body>

<video id="book-tour-video" autoplay="" controls="" src="admission_3_r3.mp4" width="640" height="360"></video>
<script type="text/javascript">
document.getElementById('book-tour-video').addEventListener('loadedmetadata', function() {
this.currentTime = 30;
}, false);
</script>
</body>
</html>

Comments

Post a Comment

Popular posts from this blog

How to learn data structure effectively

How to resolve some issue while Installing Moodle Ubuntu 16.04 using Xampp

How to Learn to Code, Fast