Skip to main content
Participating Frequently
November 11, 2010
Question

Reconnection and republishing a stream

  • November 11, 2010
  • 1 reply
  • 664 views

Hi All,

Thanks for beautiful answers and comments from you whenever I got stuck.

This time I have a question about reconnection handling in poor network bandwidth situation.

According to FMS 3.5 documents, I can reconnect the stream by making new NetConnection, attach and play2() using FMS 3.5/ FP 10.1.

What about NetStream.publish? I tried to ns.attach and then ns.publish() , but FMS disconnects the new nc somehow.

Do I have to close the stream and make again for republishing?

Please give me any advices.

Thanks!

    This topic has been closed for replies.

    1 reply

    Graeme Bull
    Community Expert
    Community Expert
    November 12, 2010

    When you get a disconnect, you don't have to make a new netconnection object, you just need to call the "connect" method again.

    For NetStreams, it's best to reinstatiate them (recreate them) and pass in the netconnection object after you have successfully connected up.