Loading New Playlists

Click on a button to choose a playlist and load it into the player!

License: All
Player Version:
Author: JW Player | GitHub
This demo includes:
  • load(playlist)
<script type="text/javascript">

//Define our three playlist arrays

var playlistOne = [{
"file": "//content.jwplatform.com/videos/iLwfYW2S-cIp6U8lV.mp4",
"image":"//content.jwplatform.com/thumbs/iLwfYW2S-720.jpg",
"title": "Road Trip"
}];

var playlistTwo = [{
"file": "//content.jwplatform.com/videos/8TbJTFy5-cIp6U8lV.mp4",
"image":"//content.jwplatform.com/thumbs/8TbJTFy5-720.jpg",
"title": "Hiking on the Edge"
}];

var playlistThree = [{
"file":"//content.jwplatform.com/videos/RDn7eg0o-cIp6U8lV.mp4",
"image":"//content.jwplatform.com/thumbs/RDn7eg0o-720.jpg",
"title": "Surfing Ocean Wave"
},{
"file": "//content.jwplatform.com/videos/tkM1zvBq-cIp6U8lV.mp4",
"image": "//content.jwplatform.com/thumbs/tkM1zvBq-720.jpg",
"title": "Surfers at Sunrise"
},{
"file": "//content.jwplatform.com/videos/i3q4gcBi-cIp6U8lV.mp4",
"image":"//content.jwplatform.com/thumbs/i3q4gcBi-720.jpg",
"title": "Road Cycling Outdoors"
}];

//Create a function to load a playlist var
function loadPlaylist(thePlaylist) {
	jwplayer().load(thePlaylist);
}

</script>
Please Note: This player implementation is a Proof of Concept only provided to show the possibilities of the JW Player and Platform and should not be taken as an offer to create, edit or maintain custom integration or development.