Playing m3u8 files on jwplayer without rtmp

whotheman picture whotheman · Dec 12, 2013 · Viewed 11.3k times · Source

I built this bit of code from a pretty long search on the web full of failures trying with various players to play this,

http://85.132.71.4:1935/turktv/ntv.sdp/playlist.m3u8

m3u8 stream. I will put up my compact(paste it into an html file) code in here in hopes someone can point me in the right direction. Thank you for reading.

<html>
<head>
<title>test page</title>
</head>
<body>


<script type='text/javascript' src='http://dev.landgraaf.net/jwplayer.js'></script>

<div id='livefeed'></div>

<script type="text/javascript">
  jwplayer('livefeed').setup({
    'id': 'playerID',
    'width': '480',
    'height': '300',
    'provider': 'video',
    'file': 'http://85.132.71.4:1935/turktv/ntv.sdp/playlist.m3u8',
    'image': 'http://dev.landgraaf.net/webcam.jpg',
    'bufferlength':5,
    'modes': [
        {type: 'flash', src: 'http://dev.landgraaf.net/player.swf'},
        {
          type: 'html5',
          config: {
          levels: [ {'file': 'http://85.132.71.4:1935/turktv/ntv.sdp/playlist.m3u8'} ],
           'provider': 'video',
           'x-webkit-airplay': 'allow'
          }
        }
    ]
  });
</script>


</body>
</html>

Answer

emaxsaun picture emaxsaun · Dec 12, 2013

M3U8 does not run in Flash mode in JW5. You would need JW6 for this. Here is some more information - http://www.longtailvideo.com/support/jw-player/28856/using-apple-hls-streaming, if you would like a trial of us, please contact us - http://www.jwplayer.com/contact-us/