2 Replies Latest reply on Apr 9, 2010 8:22 PM by fatmck

    can not set NetStream.multicastPushNeighborLimit until got a NetStream.Buffer.Full event


      I found the default value of NetStream.multicastPushNeighborLimit is 4 curretly, I want set it to a bigger value, but its still 4 after i got a NetStream.Buffer.Full event. It's the same for the NetStream.multicastRelayMarginDuration. And I Found the properties in NetGroup.info were always 0 at runtime. And the length of NetStream.peerStreams were always 0 when i am in a group.


      I have a question off the topic: Will NetGroupReceiveMode.Nearest make the group scale for more people?

        • 1. Re: can not set NetStream.multicastPushNeighborLimit until got a NetStream.Buffer.Full event
          Michael Thornburgh Adobe Employee

          NetGroup.receiveMode only affects how directed routing (NetGroup.sendToNearest()) behaves.  it doesn't affect group topology in any way, so it has no effect on the scalability of the group.


          if you want to override multicast stream parameters like multicastPushNeighborLimit and multicastWindowDuration at a receiver, you must set them to your override values each time you get a NetStream.MulticastStream.Reset NetStatusEvent.  otherwise your local changes may be overwritten by new low-level multicast streams as your node latches onto one or the another as they are flowing through the group (note that multiple publishers can publish the same named stream in the same group; receivers saying ns.play(thatName) will get one of them, and may hunt and re-latch if one stream goes idle or inactive).  each time the NetStream latches onto a new low-level multicast stream you'll get a NetStream.MulticastStream.Reset event, so you know you need to re-apply your local overrides.


          if all you are doing is multicast, then the properties of a NetGroup.info will all be 0 because those properties measure the performance of all the group modes *except* for multicast.  multicast-related/specific stats are accessed via NetStream.multicastInfo.


          group peers don't appear in NetStream.peerStreams.  that's only for 1-1 direct connection NetStreams.

          1 person found this helpful