Skip to main content
Participating Frequently
Nov 11, 2010 8:58 PM UTC
Question

Reconnection and republishing a stream

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Graeme Bull
    Community Expert
    Community Expert
    Nov 12, 2010 2:22 AM UTC

    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.

    Translate