Reconnect to server on close
Hi,
I've been banging my head against the wall for a while with this problem. I'm developing a Flash application that is streaming multiple videos at the same time from Flash Media Server 3.5 over one netConnection. The connection is established when the application is initialized and after that all video player instances use the same netConnection object to connect to the media server. Initially this seemed a better way to do it, than using a separate connection for each videoplayer (I figured it would save some bandwidth even though I wasn't quite sure how much overhead does netConnection add to the stream, if any and how much more or less load does it cause to the mediaserver). It seems to work well when the connection to the server is fast and stable. However on slower and more unstable connections, the netConnection starts breaking up. And new netConnection can't be established in netStatusEvent handler.
So my main problem now is that when the connection is closed, all the streams obviously stop and you'll have reload the application/web page to re-establish the netConnection (not very user friendly). So I've been wondering what my options are. Should I use separated connection for each stream and maybe even start using the FLVPlayback component in Flash instead of the built-in Video class. Or is there some way to reconnect a closed netconnection and resume the streams from where they were left when the connection suddenly closed?
