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

random playlist jwplayer


how to make sure to run the playlist in random order ?

<div id="mediaplayer"></div>
<script>jwplayer('mediaplayer').setup({width:"630",height:"500",primary:"flash",autostart:"true",repeat:'always',
logo: {file: 'http://www.site.ru/logo.png', position: 'top-right', hide: 'false', margin: '10',linktarget: '_blank',link: 'http://www.site.ru/'},
image:'http://www.site.ru/image.png',playlist:"http://www.site.ru/playlist.xml"});</script>

playlist.xml
<rss version="2.0" xmlns:media="http://www.site.ru/">
<channel>
<title>Example media RSS playlist for the JW Player</title>
<link>http://www.site.ru/</link>

<item>
<title>http://www.site.ru/</title>
<media:content url="http://www.site.ru/video1.flv" type="video/x-m4v" />
<media:thumbnail url="http://www.site.ru/baner.png" />
<description>Video</description>
<link>http://www.site.ru/</link>
</item>
<item>
<title>http://www.site.ru/</title>
<media:content url="http://www.site.ru/video2.flv" type="video/x-m4v" />
<media:thumbnail url="http://www.site.ru/baner.png" />
<description>Video</description>
<link>http://www.site.ru/</link>
</item>

</channel>
</rss>

7 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

There is no built-in functionality to shuffle the playlist, but it can be done with some JavaScript. I have a demo here: http://qa.jwplayer.com/~abussey/demos/general/shuffle.html

Thank you!

Alexandr

User  
0 rated :

the link does not work

Alex

JW Player Support Agent  
0 rated :

My apologies – I did not realize this was a forum post (we use a ticketing system to respond to forum posts) and our forum only supports secure links. Here is a link that should work.

Alexandr

User  
0 rated :

at this link the player plays the playlist in order, not randomly

Alex

JW Player Support Agent  
0 rated :

It randomizes the player list when the player loads but it does play in order. I have not seen an example of it shuffling on playback, but it should be possible with our JavaScript API.

alexandr

User  
0 rated :

the link is not a lot of relevant information.
what we need is not there.
jwplayer not know how to play the playlist in random order.
I will look for another player that can play the playlist in random order.

Alex

JW Player Support Agent  
0 rated :

Alexander,

Shuffling the content is not built-in functionality of the player, you are correct. However, it should be possible in using the JavaScript API. I have seen other customers have success doing it, but I do not have information on how they did it. We provide the JavaScript API for developers to use to extend the functionality of the player but we do not provide assistance in creating that extended functionality. If you find that a part of our API is not working, we will provide support for that issue, but we do not write custom code for customers.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.