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

How to play n number of videos continuously with jw player


Hi

i want to play 5 or more videos continuously with jwplayer in my website without stopping the player or reloading the web page.


How to do it?

Thanks
Praveen

10 Community Answers

MisterNeutron

User  
0 rated :

Is there some reason why you can't simply use a playlist with autostart and repeat both set to true?

Todd

JW Player Support Agent  
1 rated :

I agree with MisterNeutron. Define a playlist of videos and set autostart: ‘true’ and repeat: ‘true’. See http://support.jwplayer.com/customer/portal/articles/1908212-using-embedded-playlists for details and code examples related to creating playlists.

michael.mccarthy

User  
0 rated :

am not getting like this

<script>
jwplayer("Video_playing2").setup({
playlist: [{'http://content.jwplatform.com/jw6/mi5B3Asi.xml'},{'http://content.jwplatform.com/jw6/pYge0s2B.xml'}],
displaytitle: false,
width: 716,
height: 404
});
</script>

MisterNeutron

User  
0 rated :

The playlist can be a list of MP4 files to be played, or an RSS feed. Using an XML file does not appear to be one of the options.

A simple example: http://misterneutron.com/JW6videoPlaylist/

michael.mccarthy

User  
0 rated :

but am unable to use files.

video files are in jw platform,i have only video keys with me.

how can i do it?

Todd

JW Player Support Agent  
0 rated :

If your content is hosting by JW Platform, you can create a playlist of videos in your account dashboard. Next, embed that playlist in a player that has been set to autostart and repeat.

michael.mccarthy

User  
0 rated :

i don't want to create playlist in jw platform account.

i pick up some video keys dynamically from jw platform and i want to play all that videos one by one in my website.

how?


Thanks
Praveen

Todd

JW Player Support Agent  
0 rated :

In that case, you would need to use the video ID for each video and build a playlist with multiple sources for each video. Please see http://support.jwplayer.com/customer/portal/articles/1908212 for a code example of a playlist with multiple videos and multiple sources for each video. The URL templates for JW Platform content are:

HLS – http://content.jwplatform.com/manifests/[video_ID].m3u8
MP4 – http://content.jwplatform.com/videos/[video_ID].mp4

michael.mccarthy

User  
0 rated :

When i used like above am getting "Error loading media,File could not be played" error.

jwplayer("myElement").setup({
file: 'http://content.jwplatform.com/videos/cLEzS91Y.mp4'
});

Thanks

Todd

JW Player Support Agent  
0 rated :

Looks like you have secure video downloads enabled in your JW Platform account > Settings. You will need to append the expiration date and signature to your MP4 URL. Please see http://support.jwplayer.com/customer/portal/articles/1433647-token-signing-with-jw-platform for more details.

This question has received the maximum number of answers.