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

loop MP4 standby video when other media (RTMP) is disconnected

I have JW Player embedded on our website. The plan is to stream video only at certain times of day, with a standby video used when the stream is not connected.

At present the below code works very well if the RTMP is connected, however it stalls on the RTMP media source if the RTMP stream is not live.

Current code can be seen in action at

I'm looking for a solution where the MP4 will loop until the RTMP is connected, then resume looping when it's offline.

Any support is greatly appreciated, thanks in advance!

1 Community Answers


JW Player Support Agent  
-1 rated :

Hi, there.

My name is Alex and I am one of the Support Engineers at JW Player. I will be more than happy to assist you with your questions.

There is no built-in functionality, or otherwise easy way of doing this. Since the RTMP stream will only stream at constant times of the day, I would recommend writing some custom JavaScript to display an image, similar to what you see in your MP4, but whenever the event is happening (I’m assuming a lottery drawing), it will hide the image and load the player with the RTMP stream instead.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.