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

multi playlist


for a long time im looking for how to make jwplayer with multi playlist, for example, i want to add TVseries movie to jwplayer i can add only 1 season, i canot make load other playlist for secondseason, for exaple please check this webpage: http://adjaranet.com/Movie/main?id=1000537 , please help me or guide me,tnx a lot

2 Community Answers

p...

User  
0 rated :

this is full code which i tryed to add, everthing works exept adding new playlist


<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
image:"http://kinoteka.ge/engine/classes/flashplayer/play.png",
width:"560",
height:"325",
});
</script>

<script>
var playerInstance = jwplayer("myElement");
playerInstance.setup({
playlist: "http://kinoteka.ge/playlists/temp1.rss",
width: 560,
height: 360
});
</script>

<script>
function loadplaylist(myFile,myImage) {
playerInstance.load([{
playlist: myFile,
image: myImage
}]);
playerInstance.play();
};
</script>

<li><a href="javascript:loadplaylist('http://kinoteka.ge/playlists/temp1.rss','http://kinoteka.ge/engine/classes/flashplayer/play.png')">Season 1</a></li>
<li><a href="javascript:loadplaylist('http://kinoteka.ge/playlists/temp2.rss','http://kinoteka.ge/engine/classes/flashplayer/play.png')">Season 2</a></li>
<li><a href="javascript:loadplaylist('http://kinoteka.ge/playlists/temp3.rss','http://kinoteka.ge/engine/classes/flashplayer/play.png')">Season 3</a></li>

Randy

JW Player Support Agent  
0 rated :

Hello,

Have you potentially tried using the .load() parameter to listen for an event to inject the new seasons RSS feed? You can find the page here and potentially this sample mght work with a little tweaking:

Page: https://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference#playlist

Sample Code: document.getElementById(“myButton”).onclick=function(){playerInstance.load([{playlist:“https://content.jwplatform.com/feeds/myFeed.rss”}]);};

<button id="myButton">Play Season 2</button>

Kindly,
Randy

This question has received the maximum number of answers.