Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How To Create Button Playlist?


Hello there, I have code embed jwplayer below:
jwplayer('jwplayer-0').setup({
aspectratio: "16:9",
width: "100%",
playlist: [{
sources: [{
file: "360_example.mp4",
label: "360p",
type: "mp4"
},{
file: "480_example.mp4",
label: "480p",
type: "mp4"
},{
file: "720_example.mp4",
label: "720p",
type: "mp4"
}]
}]
});
now, I want to add Playlist then how?

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

The playlist button will automatically appear when our player detects multiple videos in the playlist. In your code example, you have multiple sources for the first playlist video, but there is no second playlist video. Please see my code example below for a sample playlist with two videos and multiple sources for each:

jwplayer('jwplayer-0').setup({
	aspectratio: "16:9",
	width: "100%",
	playlist: [{
		//first playlist video
		sources: [{
			file: "360_example.mp4",
			label: "360p",
			type: "mp4"
		},{
			file: "480_example.mp4",
			label: "480p",
			type: "mp4"
		},{
			file: "720_example.mp4",
			label: "720p",
			type: "mp4"
		}]
	},{
		//second playlist video
		sources: [{
			file: "360_example2.mp4",
			label: "360p",
			type: "mp4"
		},{
			file: "480_example2.mp4",
			label: "480p",
			type: "mp4"
		},{
			file: "720_example2.mp4",
			label: "720p",
			type: "mp4"
		}]
	}]
});

This question has received the maximum number of answers.