
Internet disconnect - connect again, JW Player does not keep playing
I made a JW Player that plays my streams successfully. There is this extra code also:
The onError code
jwplayer("player").onError ( function(event) {
setTimeout(function()
{
jwplayer("player").play(true);
},2000);
This code does not work when I disconnect from the Internet and reconnect again to the Internet. The JW player does not keep playing as expected. (this test was made in an easy environment- a desktop browser).
Actually, the player should work even without the above code. It should be included in the player in this Internet disconnection case, When the Internet is connected back, the video should be played automatically.
Please tell me how to resolve this. And do not tell me reload the whole page page way. It should not need to reload the whole page. If reload, at least it should be done very smoothly only on the player and not the whole page.