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

Apple HLS Live Embed - with RTMP Fallback


I have a livestream embed, with the main live embed being a HLS Stream.

But with some workplaces, they block HLS streams (oddly), so I would like to have an RTMPT fallback. Is there anyone who has done this?

I have TRIED to create a workaround here - http://mtlearn.ca/f/liveembed_rtmptfallback.html

The main video player plays a HLS stream, then I have a javascript fallback that plays a RTMP stream. But the RTMP stream doesn't autoplay.

Is there anyone who can suggest something different?

Thanks!

4 Community Answers

Donni

JW Player Support Agent  
0 rated :

HLS stands for HTTP Live Streaming, so you should be using port 80. It’s not that they are blocking HLS streams, it’s that they are blocking port 1935.

j...

User  
0 rated :

Donni,

I use a Wowza/Amazon EC2 streaming solution.

With the EC2/Cloud generated IP addresses, if the URL of the HLS stream is unknown to the organization (sometimes, such as a bank), they block the HLS URL on grounds that it is "uncategorized"

Sometimes, WebSense categorizes the URL (such as http://12.34.567.890) as "IT" in which case the stream WILL go through.

But when I am streaming an event, I can't influence each and every IT department to allow the cloud generated IP address to be allowed through.

About the Port 1935 - I forgot to strip that piece out of the HLS stream URL. I usually do, and my HLS streams still get blocked.

So, I wonder (and getting back to my original post) - is there an embed code I can make where the primary stream is the HLS stream, with an RTMP fallback?

Thanks for your original answer.

Jason

j...

User  
0 rated :

Donni,

Perhaps you (or someone else at JW) could help me with an embed code.

Link 1 - https://goo.gl/qozCl7 - VOD embed - both videos play autostart. This works as expected
Link 2 - https://goo.gl/qNLfeR - these are two LIVE video streams on the same page - first video is autostart=false - the second link will autostart
Link 3 - https://goo.gl/hxajDY - these are two LIVE video streams on the same page - first video is autostart-true - the second link will NOT autostart

How can I adjust my embed code, such that I have two embed codes (the first being an HLS stream, the second being an RTMP stream) - and both will autostart. I cannot get both streams to autostart when the files are livestreams. The only time I can get both videos to autostart is when they are standard mp4 files.

Thanks,

J

Donni

JW Player Support Agent  
0 rated :

You could use the JW 6 API reference to create an API solution that utilizes onError to play the fallback stream if the first errors our.

However, I’m interested to know why you haven’t moved to JW 7 yet. JW 7 can play back HLS streams in HTML5 which will be important as Chrome will be deprecating flash on December 6th ( you can read more about that here ) and we’ll be ceasing support for JW 6 at the end of this year.

This question has received the maximum number of answers.