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


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 :

You can try using either onSetupError or the onError event handlers to listen for an offline stream and then rebuild the player:

jwplayer().onSetupError(function() {
file: ‘hls-stream’

Best Regards,

This question has received the maximum number of answers.