
Multiple RTMP streams in one playlist: how to make it work?
Hi,
I'm trying to setup a single JWPlayer to load a series of RTMP streams, in order to have them in a listbar.
They are all live streams.
I tried a configuration like this:
jwplayer("video").setup({
file: "playlist.rss",
live: "true",
listbar: {
layout: "basic",
position: "bottom",
size: 150
},
width: 372,
height: 209+150,
controls: true,
autostart: true,
primary: 'flash',
modes: [
{type: 'flash', src: 'jwplayer/jwplayer.flash.swf'}
]
});
And my playlist look like this:
<rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<item>
<title>One</title>
<description> </description>
<jwplayer:file>rtmp://mystreamerIP/1</jwplayer:file>
<jwplayer:streamer>rtmp://mystreamerIP/1</jwplayer:streamer>
<jwplayer:provider>rtmp</jwplayer:provider>
</item>
<item>
<title>Two</title>
<description> </description>
<jwplayer:file>rtmp://mystreamerIP/2</jwplayer:file>
<jwplayer:streamer>rtmp://mystreamerIP/2</jwplayer:streamer>
<jwplayer:provider>rtmp</jwplayer:provider>
</item>
</channel>
</rss>
But nothing works, I always get "Error loading player: no playable sources found".
How come?
If I load each stream at once, they work perfectly, so it isn't a problem relative to my stream server.