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

auto recconect when you lost internet connection

i am trying to enable auto reconnect when someone loss internect conection the player would be auto reconnect automatically after they reestablish internet connection.
i am using this embed code:

<!DOCTYPE html>
<script src=""></script>

<div id='playerQkbZizdfJlia'></div>
<script type='text/javascript'>
file: 'rtmp://',
image: '',
title: 'test',
width: '640',
height: '360',
autostart: 'true',
primary: 'flash'
window.location = window.location.href;
theTimeout = setTimeout(function(){
here is a video sample for other website that use auto reconnect, i would like to use something similar to enable in my jwplayer. also i upload a sample video using the jwplayer embed code to auto reconnect, but it looks that is not working properly. you can see in the video.
also it would be great if you enable this autoreconnect option in jwplayer -->control panel , publish-> your website

2 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

If you have lost your connection, then you will not be able to do a load() event, since you won’t have any connectivity. A better way to go about this would be to just simply do something like this:

theTimeout = setTimeout(function(){
window.location = window.location.href;

So it will just reload the page after 5 seconds after the connection drops. Then you can make the player autostart so it will try to play again.


0 rated :

That is not feasible.I would also like to how to solve this problem.When the network is disconnected,the js cannot receive a events.Maybe I did not find this events.
if huo solve this question.plealse tell me.My email is

This question has received the maximum number of answers.