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

Adaptive bitrate and mrss with jwplayer 6


Hi,

In JWPlayer 5, I was using the mrss to handle adaptive bitrate :

e.g. :


<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<title>big-[id][hash]</title>
<item>
<title>big-[id][hash]</title>
<description/>
<media:thumbnail url="http://static.local.hermes.fr/1/sante-forme/test/video/thumbnail/3333/43c9c/test-big-id-hash-tns2.gif"/>
<media:group>
<media:content bitrate="200" url="http://static.local.hermes.fr/medias/1/videos/3/3/3/3/43/streaming-43c9c.ssm/streaming-43c9c-200k.mp4" width="400"/>
<media:content bitrate="400" url="http://static.local.hermes.fr/medias/1/videos/3/3/3/3/43/streaming-43c9c.ssm/streaming-43c9c-400k.mp4" width="400"/>
<media:content bitrate="600" url="http://static.local.hermes.fr/medias/1/videos/3/3/3/3/43/streaming-43c9c.ssm/streaming-43c9c-600k.mp4" width="480"/>
<media:content bitrate="1000" url="http://static.local.hermes.fr/medias/1/videos/3/3/3/3/43/streaming-43c9c.ssm/streaming-43c9c-1000k.mp4" width="640"/>
</media:group>
<jwplayer:description/>
<jwplayer:title>big-[id][hash]</jwplayer:title>
<jwplayer:duration>89</jwplayer:duration>
<jwplayer:image>http://static.local.hermes.fr/1/sante-forme/test/video/hd/3333/43c9c/test-big-id-hash-img.gif</jwplayer:image>
<jwplayer:type>http</jwplayer:type>
<jwplayer:http.startparam>start</jwplayer:http.startparam>
</item>
</channel>
</rss>

With jwplayer 6, I don't find how to do the same thing.
Basically I'd like to use a HLS stream + a mrss (with adaptive bitrate) as a fallback for android devices.
The syntax I've already tried :

jwplayer('id_jwplayer').setup({
sources: [
{file: "http://static.local.hermes.fr/medias/1/videos/3/3/3/3/43/streaming-43c9c.ssm/streaming-43c9c.ism/streaming-43c9c.m3u8"},
{playlist: "http://club.local.hermes.fr/widget/get_video_mrss.php?id_media=43&salt=c9c"}],
height: "266",
width: "640",
primary: "flash"});

The playlist syntax works, but plays by default the first file in the mrss, without adaptive bitrate.

Is there any way to achieve this behavior ?

Thanks and regards,
Jocelyn Fournier

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hi Jocelyn,

HLS is adaptive bitrate. MRSS is a method of feeding a playlist or single video into our player. Within the MRSS feed, there can be HLS (m3u8) sources.

Here is our documentation for creating an rss for use with the player:
http://support.jwplayer.com/customer/portal/articles/1406722-rss-playlist-embed

This needs to be fed into the player using the `playlist` parameter:
jwplayer(“player”).setup({
playlist: ‘mrss-feed.xml’,
width:‘100%’
});

Within that file, you can have multiple source items, included adaptive HLS
<jwplayer:source file="video.m3u8"/>
<jwplayer:source file="video.mp4"/>

Best Regards,
Cooper

This question has received the maximum number of answers.