
HLS and HTML5
According to the JW6 docs, HLS is only supported on desktop browsers when using flash. Is JW going to support HLS streams for HTML5?
According to the JW6 docs, HLS is only supported on desktop browsers when using flash. Is JW going to support HLS streams for HTML5?
Good question, Same thing I want to do in my site.
Once other browsers support it, we will as well. Currently the only desktop browser that supports this is Safari on OS X.
I'd like to ask another question here.
What is the latest status of the player supporting HLS on android? I'm doing some live broadcasting using HLS on Edgecast. When I load up the player with the HLS stream in Chrome on my Galaxy S3 I get "No playable sources found". However, if I point my browser directly to the .m3u8 file, it loads and plays just fine in the native video player.
We are going to support that as well once Android 4+ has more traction.
Thanks for your reply Ethan but why don't you support HTML5 HLS streams anyway and just fallback to flash where appropriate?
We do, in Safari on OS X. Not Android, yet, though.
In that case, then my issue is that none of the events are triggering when a stream is unavailable and the default is html. The events only seems to trigger for flash as the primary when a stream is unavailable.
http://webdev2.otago.ac.nz/video/streaming.html
What browser and OS are you using?
Sorry. Safari. It errors as expected for html in Firefox and Chrome. IE just returns no playable sources found.
Ignore the IE issue. Flash wasn't installed.
Okay. Have you tried onSetupError as well?
I've added onSetupError to my demo page at http://webdev2.otago.ac.nz/video/streaming.html but there's no joy there either. Probably as there's no setup error.
When you play the top player, does it just buffer, or do you get any message at all in the player at all?
The buffering/loading icon just spins endlessly for html. For flash, it spins a couple of times and then alerts with the error I set.
If it just buffers endlessly, you could use onBuffer to check this, something like 5 seconds:
jwplayer().onBuffer(function(){
theTimeout = setTimeout(function(){
alert('error');
},5000);
});
I've added the onBuffer code to my sample page but the event is not triggering. The stream I'm using on the test page is not present so there's nothing to buffer. It just looks like it is when using html. Flash doesn't give the onBuffer error as well. It triggers the onError event correctly.
Email me, I have a demo using this – ethan [at] jwplayer [dot] com