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

how to detect blocked rtmp stream fallback to hls


Hello,

I wish to be able to detect whether rtmp is available and if not fall back to an hls stream. How should I approach this?

Thank you

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hello
You can try using either onSetupError or the onError event handlers to listen for an offline stream and then rebuild the player:
http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

jwplayer().onSetupError(function() {
jwplayer(‘player’).setup({
file: ‘hls-stream’
});
});

Best Regards,
Cooper

This question has received the maximum number of answers.