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

RTMP/M3U8 fallback


I have come across a few articles regarding fallback but, I have not seen any that really touch on fallback to M3U8.

Here is my situation. I am using JW7 self hosted. I have a player on my Wordpress site to show my live stream. The first source is RTMP for those on desktop sites. If they view it on mobile I have the second source for HLS/M3U8 but, it doesn't fallback on mobile devices. Maybe I am doing something wrong or there is a different way I need to be doing this?

Here is the configuration for the player I am using.

var playerInstance = jwplayer("mwx");
playlist: [{
title: 'Title of Live Stream',
image: "// STORM FORCE.png",
sources: [{
file: "rtmp://"
file: ""
rtmp: {
bufferlength: 3
primary: "flash",
fallback: true,
height: 500,
width: "100%",
aspectratio: "16:9",
autostart: "true",
skin: {
name: "bekle"

I have changed the URL for privacy reasons.

3 Community Answers


JW Player Support Agent  
0 rated :

Your code looks correct. Does your HLS stream play when loaded directly in iOS or in Chrome for Android?

Nick Copeland

0 rated :

Thanks for the reply. I got it shorted. After looking through my code for my mobile test site I noticed I had the extension for the HLS URL wrong. I had playlist.m3u8 when it should have been index.m3u8.

So change it and all is good now and it rolls over on mobile now.

Strange thing is if a company has port 1935 blocked or RTMP on desktop. It doesn't fall back to HLS it just gives them an error. Would that be because it detects flash and thinks it can serve RTMP as it doesn't know the client side has that blocked?



JW Player Support Agent  
0 rated :

Hard to say. I would need to see the network requests and traffic to know for sure. Your best bet is to just use HLS. Our player will use Flash if the viewer’s browser does not natively support HLS, so it’s the exact same folks that would need Flash for RTMP anyways. And you don’t have to worry about networks that block the port for HLS, because it goes over the same port as the rest of the web traffic.

This question has received the maximum number of answers.