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

Can i add two addresses videos into an html?


I want to know if there exist a function or script that can identify if a video doesnt connect to one server "go to other address in other server"

Because in my company we have two servers one internal and other external but when people want to stream video on mobile or from home obviously cannot connect to the video because is on an internal server (ethernet)

1 Community Answers

Cooper Reid

JW Player Support Agent  
1 rated :

You can try using the onError event handler to listen for an error, and then re-setup the player:

var setup = function(stream) {
jwplayer(“player”).setup({
file: stream,
width:‘100%’
});
}
setup(‘steam-1.m3u8’);
jwplayer().onError(function() {
setup(‘steam-2.m3u8’);
});

http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

Best Regards,
Cooper

This question has received the maximum number of answers.