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

Starting JWplayer when RTMP stream begins.

I have JWplayer 7 set up and running mostly fine on my website, but sometimes it fails to detect an RTMP stream. If I start streaming, and then load the webpage (autostart set to true), then sometimes the player will never cease its loading animation. I'm wondering if there is a way to prevent this behaviour? I'd like to keep autostart set to true, but if there's a way to start the player automatically when it detects a stream, I'm all ears.

1 Community Answers


JW Player Support Agent  
0 rated :

We do not check for the stream until the player loads, so I cannot think of a way to have the player start when it detects the stream.

Perhaps your best option would be to start the player and then start a Javascript timer for 30 seconds (or less, if you like). If you detect that the player state has changed to play, end the timer. When the timer hits 30 seconds, remove the player and call setup again, with a new 30 second timer.

This question has received the maximum number of answers.