This is a message.

Flowplayer auto reconnect on connection loss Created Jul 1, 2009

This thread is solved

Views: 6418     Replies: 8     Last reply Aug 5, 2011  
You must login first before you can use this feature

MoD

Posts: 9

Registered:
Jun 25, 2009

Flowplayer auto reconnect on connection loss

Posted: Jul 1, 2009

Hello,

Is there a way to make Flowplayer reconnect to the server on connection loss? e.g. connect to a live stream, unplug your internet cable, replug your internet cable, flowplayer doesn't reconnect automagically.

Tried handling the OnError event with javascript, but no errors are given on connection loss.

Any suggestions on how I would go about doing this??

Thanks.

gmccomb

Posts: 746

Registered:
Apr 9, 2009

» Flowplayer auto reconnect on connection loss

Posted: Jul 1, 2009

Reply to: Flowplayer auto reconnect on connection loss, from MoD
What players do this now? I know RealPlayer and YouTube (last time this happened to me) do not.

MoD

Posts: 9

Registered:
Jun 25, 2009

» » Flowplayer auto reconnect on connection loss

Posted: Jul 1, 2009

Reply to: » Flowplayer auto reconnect on connection loss, from gmccomb
When playing a windows media stream using windows media player, and you disconnect the network cable, it will notify that it is trying to reconnect, and when you replug the network cable, the stream continues.

gmccomb

Posts: 746

Registered:
Apr 9, 2009

» » » Flowplayer auto reconnect on connection loss

Posted: Jul 1, 2009

Reply to: » » Flowplayer auto reconnect on connection loss, from MoD
Windows Media Player is its own application, and doesn't use an underlying app (Flash) or even the browser, even if the player is embedded in a Web page.

That said, if I put my PC to sleep while a stream is playing in WMP, I get a warning about it, and when the PC is brought back up the connection is permanently lost. I must reload from the beginning. So whatever it is they're doing it's not consistent.

As Flash handles all the netstreaming you might want to research on the Adobe site regarding what is possible from the FMS side. There may be other third-party streaming services for Flash that will keep the connection alive longer than whatever is the usual timeout.

MoD

Posts: 9

Registered:
Jun 25, 2009

» » » » Flowplayer auto reconnect on connection loss

Posted: Jul 6, 2009

Reply to: » » » Flowplayer auto reconnect on connection loss, from gmccomb
It seems that Flowplayer *does* attempt to reconnect so long as the user still has a connection to the streaming server - eg. if a live stream is disrupted between the publisher/source and server as opposed to between the user and the server.

But if the user's connection to the server is disrupted, eg. if your wireless connection drops out, or if you unplug your network cable, then Flowplayer seems to get stuck in a "buffering" state - for both live and on demand streams - and never recovers.

The workaround seems to be handling the buffering events in Javascript, and having your own timeout so that if a stream buffers for too long, it assumes the connection is broken, and gets Flowplayer to reconnect.

vdiago

Posts: 2

Registered:
Dec 16, 2009

Any success in this ????

Posted: Dec 17, 2009

Reply to: » » » » Flowplayer auto reconnect on connection loss, from MoD
Hello everybody

I need exactly the same thing. If there is any way to say to flowplayer to "refresh page" or "reconnect" when it starts to buffer forever .... i would like to know.

Well, im using vlc to create a flash (flv) live stream from an rtsp source. But when my vlc crash (for example when it lost the rtsp connection) my flowplayer will show the buffer ring of the death (lol) forever. EVEN if my vlc reconnect again.

Do you know how can i make this ? something like :

If flowplayer is buffering for more than x seconds
then
reload page.

This would fit perfectly !

Thanks Again from Brazil

Victor Diago

japonaise

Posts: 12

Registered:
Jan 2, 2009

» Any success in this ????

Posted: Jan 26, 2011

Reply to: Any success in this ????, from vdiago
I know this may seem absurd, but my boss believes that adding:

scrubber: true

... to the "controls" plugin has enabled buffering for RTMP and that the temporary connection loss problem that we have also experienced has thus been fixed.

That is, we also had our players die when the cable was temporarily unplugged, but adding "scrubber: true" to the controlbar (which I thought was purely cosmetic) allowed the player to recover.

Can anyone corroborate this?