Results 1 to 4 of 4

Thread: Am I doing adaptive RTMP and iOS correctly?

  1. #1
    Join Date
    Nov 2012
    Posts
    103

    Question Am I doing adaptive RTMP and iOS correctly?

    Hi. Would anyone care to look at my code and see if I'm doing adaptive RTMP and especially iOS correctly?

    http://jn.kundemappe.dk/amazon_ec2/

    <script type="text/javascript">
    jwplayer("myElement").setup({
        playlist: [{
            image: "thumb.jpg",
            sources: [{ 
                file: "http://54.194.136.215:1935/live/ngrp:amazonmicro_all/jwplayer.smil"
            },{
                file: "http://54.194.136.215:1935/live/ngrp:amazonmicro_all/playlist.m3u8"
            }]
        }],
        height: 468,
        primary: "flash",
        width: 832
    });
    </script>

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    It looks right, like the 2nd example in the JW Player 6 guide.

    Richard

  3. #3
    Join Date
    Nov 2012
    Posts
    103

    Default

    Now if I want to add support for Android, how to I go about that?

    Does JW Player 6 still not support Android, and if not, what would be the best way to setup fall back outside the player code?

    I could create a link to the .m3u8 file that the user can manually click and then open in a compatible app, but that is not the really a cool way to do it, is it?

  4. #4

    Default

    Hi,

    If the android supports HLS streaming (which is the case with most recent versions) then it should be able to play the m3u8 version. If it supports flash, it may play the flash version.

    If it doesn't and needs rtsp then the following should work (JW 6)

    <div id="myElement"><a href="rtsp://54.194.136.215:1935/live/amazonmicro"><img src="thumb.jpg" /></a></div>
    <script type="text/javascript">
    jwplayer("myElement").setup({
        playlist: [{
            image: "thumb.jpg",
            sources: [{ 
                file: "http://54.194.136.215:1935/live/ngrp:amazonmicro_all/jwplayer.smil"
            },{
                file: "http://54.194.136.215:1935/live/ngrp:amazonmicro_all/playlist.m3u8"
            }]
        }],
        height: 468,
        primary: "flash",
        width: 832,
        fallback: false
    });
    </script>
    You put a link to an rtsp url for one of the stream renditions in the div tag where the player would normally be embedded. Rtsp does not support ABR so you can only set a single bitrate rendition to play back. Using fallback: false in the jw player embed code tells the player to render the original div tag if the content cannot be played. Without the fallback setting, the player will render a default image.

    Roger.

Similar Threads

  1. RTMP Adaptive with HLS Adaptive Fallback
    By Speegs in forum Media Players and Devices Discussion
    Replies: 5
    Last Post: 11-06-2013, 09:03 AM
  2. Borked captions on adaptive stream via iOS
    By m0zziter in forum Closed Captioning
    Replies: 2
    Last Post: 04-16-2013, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •