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.
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"
}
});
I have changed the URL for privacy reasons.
↧