![](https://secure.gravatar.com/avatar/04c6244bee100495371585775c461787?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
RTMP/M3U8 fallback
Hello,
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.
<script>
var playerInstance = jwplayer("mwx");
playerInstance.setup({
playlist: [{
title: 'Title of Live Stream',
image: "//mydomain.net/stream/images/FOX STORM FORCE.png",
sources: [{
file: "rtmp://mydomain.com/app/stream-key"
},{
file: "http://mydomain.com/app/stream-key/playlist.m3u8"
}]
}],
rtmp: {
bufferlength: 3
},
primary: "flash",
fallback: true,
height: 500,
width: "100%",
aspectratio: "16:9",
autostart: "true",
skin: {
name: "bekle"
}
});
</script>
I have changed the URL for privacy reasons.