Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to get the video player to play one clip after the other in a continuous loop once the user clicks play. Here's what I've got so far

Code:
HTML
<video id="video" src="http://media.w3.org/2010/05/sintel/trailer.mp4" autoplay autobuffer controls />



JavaScript
var videoPlayer= document.getElementById('video');
videoPlayer.onend = function(){
videoPlayer.src = "http://www.mp4point.com/downloads/8feeca1a540b.mp4";
}


JsFiddle: http://jsfiddle.net/3uRq6/3/
Posted
Updated 20-Mar-13 11:15am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900