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

rtmp stream


i am working with rtmp stream from an ip cam. i need to know how do i handle the stream if internet disconnects or server got down while playing stream. jwplayer displays a black screen but no error event nor idle event is trigerred. kindly let me know if there is another event that i m not using or is there any other way???

3 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi Farhan,

Since there are numerous reasons why a stream can be disconnected or interrupted, there is no real way for our player to be able to handle those issues gracefully. Usually, I would suggest using .on(“error”) to take some action, but if the player does not display an error in the player’s display or the browser’s console – that will most likely not work.

Farhan

User  
0 rated :

thanx for your response. But .on('error') doesn't work in this scenario....

Alex

JW Player Support Agent  
0 rated :

Hi Farhan,

I agree with you that it won’t work in your scenario in which an error does not display in the player. However, those situations are really the only ones in which something can be done on the player’s end to help if a stream disconnects.

This question has received the maximum number of answers.