Results 1 to 3 of 3

Thread: jwplayer 7 for HLS live streaming

  1. #1
    Join Date
    Sep 2015

    Default jwplayer 7 for HLS live streaming

    I recently upgraded my jwplayer to 7.2.4, and somehow it broke the link it previously had to open a player on mobile devices. I have a call like:
    <div id="player">
    <a href="rtsp://[server id]:1935/live/<?php echo $flightId?>">Streaming RTSP Link--Click here.</a>
    Down below I call the player like this:
    sources: [{file: "rtmp://[server id]:1935/live/flv:<?php echo $flightId?>"}],
    rtmp: {
    bufferlength: 3
    image: "app/images/skytubelive_logo.png",
    fallback: false,
    width: "100%",
    height: "100%",
    ratio: "100%",
    responsive: true,

    Formerly on a PC this would show a jwplayer and on the phone would show that RTSP link, that you could click on and it would then query you for what app you wanted to play the stream with. Now, however, on the phone, as on a PC, it shows a jwplayer, which of course does not work on a phone.

    I asked jwplayer about it and they said the fallback configuration option does not exist in JW 7 because the player will be able to render its controls in HTML5 no matter how the actual player is being rendered and I should look into using HLS as our streaming format as "it is supported in desktop browsers and natively supported on both iOS and Android." (is this correct?)

    I have looked at your page on jwplayer here:, and tried to change my calls above, with no success as of yet. None of the examples that are given show HLS for a live stream. Can someone suggest how to change the above jwplayer call to play the live stream properly that will work on desktop and mobile browsers? I.e., what is the proper address to point the jwplayer to in order to play a live stream via HLS?



  2. #2
    Join Date
    Sep 2015


    When I change the player call to say:
    sources: [
    {file: "rtmp://<?php echo $flightId?>"},
    {file: "<?php echo $flightId?>/playlist.m3u8"}],
    then it works on my PC, but on my phone it never plays anything, just a black screen. (Without the http line, i.e., the original version as shown above, it gives an "error loading player: no playable sources found" message.) Can someone PLEASE PLEASE PLEASE tell me what I'm doing wrong????

  3. #3
    Join Date
    Dec 2014


    Hello Brian,

    This is a very specific player issue you are dealing with. JW Player is correct, the HLS url is "supported in desktop browsers and natively supported on both iOS and Android." For now, I would test the actual HLS url and drop the <?php echo $flightId?> piece of your call to see if this is the issue within JW Player.

    If you can setup this simple test below with your latest version of JW Player, only using the HLS url and playback successfully, you will know that the issue lies with JW Player handling the variable in the url.

    <!DOCTYPE html>
    <html lang="en">
        <meta charset="UTF-8">
        <title>JW Player</title>
        <script src="jwplayer.js"></script>
        <script>jwplayer.key = "[jwplayer-key]";</script>
    <div id="player"></div>
            sources: [{
                file: "http://[wowza-ip-address]:1935/vod/sample.mp4/playlist.m3u8"
            height: 360,
            width: 640
    I hope this helps.


Similar Threads

  1. Replies: 7
    Last Post: 07-22-2015, 02:52 PM
  2. HLS streaming of MP3 files not working on android 4.3 + jwplayer 6.12 (Enterprise)
    By koustubh3004 in forum Media Players and Devices Discussion
    Replies: 3
    Last Post: 06-23-2015, 06:02 AM
  3. HLS playback issues with JWPlayer 6.8
    By vjagannathan in forum General Forum
    Replies: 5
    Last Post: 06-16-2014, 11:54 AM
  4. GoCoder, HLS, JWPlayer 6
    By olt99999 in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 01-02-2014, 08:37 AM
  5. Prefix MP4: with HLS VOD stream and JWPLAYER 6
    By in forum General Forum
    Replies: 1
    Last Post: 07-19-2013, 04:27 PM

Posting Permissions

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