Play Multiple Videos One after Another Continuously - Playlist
Here is an example for playing multiple videos one after another using a single player.You can play any type of video files using this piece of code. This uses HTML5 and JWPlayer. This is a simple example for beginners.
In this code, multiple videos are playing continuously. This code uses JW Player.JW Player is the Web's most advanced Flash and HTML5 video player.
The most important aspect of the JW Player is that it supports both Flash and HTML5 rendering modes. The JW Player can playback video in both Flash & HTML5 depending on a user's browser or device. Just pick Flash or HTML5 as the primary playback mode and the JW Player will automatically switch to the other mode if needed.
Skins and JavaScript code will work across all browsers and devices providing a consistent, interactive user experience.
<div id="mediaplayer">JW Player goes here</div>
<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "player.swf",
'playlist': [{
'file': 'http://localhost/cricarchive/videos/barsandtone.flv',
'image': '/thumbs/video1.jpg',
'title': 'The first video'
},{
'file': 'http://localhost/cricarchive/videos/video2.flv',
'image': '/thumbs/video2.jpg',
'title': 'The second video'
},{
'file': 'http://localhost/cricarchive/videos/barsandtone.flv',
'image': '/thumbs/video2.jpg',
'title': 'The second video'
}],
repeat: 'list'
});
</script>