Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

RTMP Streaming + HTML5 Fallback + Playlists + Adaptive Bit Streaming

10 replies [Last post]
Reply

Hi,

I'm currently trying to create a player to stream a live feed using RTMP, with a html5 fallback for iOS devices, adaptive bit streaming for the RTMP stream and implement all this in a playlist.

I have no problem doing each of those on their own, and even combining some of them (playlists with adaptive bit streaming, html5 fall back with adaptive bit streaming for RTMP), but I cannot get them to work together. Is what I am trying to do possible?

The pseudo code is:

playlist : [
{
modes : [
{
rtmp stream
flash fallback
}
]},
{
modes : [
{
rtmp stream
flash fallback
}
]}
]

Reply

Putting the modes block inside of the playlist block is not supported, it is not the intended way to do this.

Reply

I thought that was the case, I think I know how to remedy this, thanks for your help Ethan.

Reply

I've got it running in proper syntax, but I still can't view it on iDevices. I have:

<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id' : 'playerID',
'width' : '960',
'height' : '576',
'autostart' : 'true',
'modes' : [
           {type: 'flash', src: 'player.swf'},
           {type: 'html5'},
           {type: 'download'}
           ],
'playlist.position' : 'right',
'playlist.size' : '210',
'playlist' : [{
                title: "",
    image: "",
    type: "RTMP",
    streamer: "rtmp://",
            levels: [
            {
            bitrate : "1300",
            width : "576",
            file : ".stream"
            }, {
            bitrate : "792",
            width : "576",
            file : ".stream"
            }, {
            bitrate : "384",
            width : "360",
            file : ".stream"
            }, {
            bitrate : "128",
            width : "160",
            file : ".stream"
            }]
}, {
            title: "",
            image: "",
            type: "RTMP",
            streamer: "rtmp://",
            levels: [{
        bitrate : "1300",
        width : "576",
        file : ".stream"
        }, {
        bitrate : "792",
        width : "576",
        file : ".stream"
        }, {
        bitrate : "384",
        width : "360",
        file : ".stream"
        }, {
        bitrate : "128",
        width : "160",
        file : ".stream"
        }],

            }]

This plays fine in flash, but how do I then set it to go to my .m3u8 file for different streams? I looked at http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/playlist.html?type=rtmp but this doesn't work on my iPad so not sure what to do really.

Reply

Sorry for the triple post, but I've figured this out now, thanks for the help anyway!

Reply

Great, np!

Reply

Hi Rick, Ethan,

I am trying to achieve this same goal,
Is there any authoritative resource on the correct way to set this up?

Reply

Please post your solution! Thanks.

Reply

We don't have an exact example of all of these together, sorry, but yes, post it so others can see! :)

Reply

My solution was to basically just check if they're on an iDevice and then redirect them to an apple only player page using:

<script type="text/javascript"> // <![CDATA[
if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
document.location = "appletvsite.html";
} // ]]>
Reply

Cool, thanks for sharing!

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options