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

loading multiple pieces of rss into single playlist


Hello,

is it possible to feed jwplayer with several rss files to be part of single playlist?

we have quite simple business case here - a video hosting with thousands of videos. every video is a unique entity in CMS with it's own rss file generated by wowza.
rss file for each individual video looks like this:

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<item>
<media:group>
<media:content url="http://ZZZ.org/abr/video_1099913987/playlist.m3u8" />
<media:content url="http://ZZZ.org/dfs/video_1099913987/zjUrhjsjfsdfk.mp4" bitrate="314" width="288" height="160" label="160p" />
</media:group>
</item>
</channel>
</rss>

and video setup looks like:
...
playlist: http://ZZZ.org/video_1099913987/jwplayer.rss
...

at some point of time video owner wants to have video A, video B and video C to be played sequentially - and this is where we have a problem - since rss is generated dynamically it's not possible to put all those videos into single rss, so the only option here is to make jwplayer understand that several rss are part of a playlist. is it possible to configure this in jwplayer?

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Currently, we only allow one single URL to be loaded into the player at a time. You can load a second playlist via our API (Using load() ), but this will not append the currently utilized playlist with new content.

r.omanhlynovskiy

User  
0 rated :

Andrew, thanks for feedback.

I wrote my own wrapper for this.

function extendPlaylist(item) {
var a = jwplayer().getPlaylist();
var b = jQuery.extend(true, [], a);
var c = a.length;
b[0]['sources']['0']['file'] = item;
a[c] = jQuery.extend(true, {}, b[0]);
jwplayer().load(a);
}

looks a bit ugly, but works for me.

Andrew

JW Player Support Agent  
0 rated :

Awesome! Glad it’s working then. :)

This question has received the maximum number of answers.