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

Safari not playing m3u8 stream without flash


Hi guys, we are having difficulties with the streaming system.
I tested the URL here http://demo.jwplayer.com/developer-tools/http-stream-tester/
and it only works if I select flash as my render mode ( and that only works if the user has the Allow Plugins setup). Before that I was running an older version of the player and the stream was not working for chrome as well, I upgraded the version now. This used to work for Safari and iOS and users are reporting it doesn't work in either one.

this is my setup:
```
jwplayer("mediaplayer").setup({
file: "rtmp://digital.flash.internapcdn.net/digital/live_1/kingdomtvlive",
playlist: [{

sources: [{
file: "rtmp://digital.flash.internapcdn.net/digital/live_1/kingdomtvlive"
},{
file: "http://digital.ios.internapcdn.net/digital/live_1/kingdomtvlive/kingdomtvlive.m3u8"
}]
}],
androidhls: 'true',
hlshtml: true,
primary: "html5",
height: 500,
//image: "/assets/myLivestream.jpg",
rtmp: {
subscribe: true
},
width: 600,
autostart: true
});
```

5 Community Answers

Donni

JW Player Support Agent  
1 rated :

You can’t list a file and then a playlist. Remove the file: block and flip the order of the sources so HLS is first. Also, you’re on a free account so you’d need a Premium Subscription to get an HLS to play in Chrome/FF without flash. Also, it looks like all of those streams are down. One more tip: you can remove the androidhls, hlshtml, and primary blocks because those are all defaults now and are not necessary. If you’re still having issues post a test page.

dj

User  
0 rated :

Hi Donni, I followed your directions and this is my new setup:


jwplayer("mediaplayer").setup({
playlist: [{
sources: [{
file: "http://digital.ios.internapcdn.net/digital/live_1/kingdomtvlive/kingdomtvlive.m3u8"
},{
file: "rtmp://digital.flash.internapcdn.net/digital/live_1/kingdomtvlive"
}]
}],
height: 500,
rtmp: {
subscribe: true
},
width: 600,
autostart: true
});
```

Still not working on safari/iOS (testing with simulator). You can check it here http://www.kingdomsat.com/en/live-streaming
The message on Safari reads: Error loading media: File could not be played
Which doesn't make sense as it works with flash enabled.

Donni

JW Player Support Agent  
1 rated :

We use Safari as a benchmark browser because it can natively render HLS streams without our player. Your stream will not playback in Safari. While your master manifest will not work, your child manifest is playing back.

dj

User  
0 rated :

Hi Donni,
Thanks very much for your help, I will inquire the servicing company about that error. I don't know a whole lot about hls manifests but this probably means that there's nothing to do with the JWPlayer correct ?

Donni

JW Player Support Agent  
1 rated :

I thought it might be a configuration issue at first but it does appear to be related to the stream itself.

This question has received the maximum number of answers.