Skip to main content
Chicohuman
Known Participant
July 12, 2011
Question

MaxPeers or MaxStreams rule?

  • July 12, 2011
  • 1 reply
  • 733 views

Hi,

For example in a chatroom with 10 people in, we would need to increase the default of the max streams (or max peers?), because the default is only 8.

I know it's not 'MaxStreams' on the FMS server-side configuration, but I can't remember the name of this function. I'm not sure if it's applicable only for RTMP/RTMFP groups or RTMFP direct connections yet, I would need to read on it first...

Anyone knows?

Thanks

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    July 12, 2011

    NetConnection.maxPeerConnections limits the number of 1:1 P2P NetStreams (DIRECT_CONNECTIONS ones) that can be set up.  it doesn't affect any group (NetGroup or group NetStream) peers.

    if your app is not using DIRECT_CONNECTIONS NetStreams, then you don't need to worry about this setting.  if you are using DIRECT_CONNECTIONS, then you will need to increase the number (the default is 8).

    Chicohuman
    Known Participant
    July 12, 2011

    In fact we are using DIRECT_CONNECTIONS NetStreams

    If there is a chat room of let's say only 4 people, do we need to increase the default number, since it creates 12 streams in total? Or is that not how we calculate the NetStreams being created?

    Thanks for the quick answer.

    Adobe Employee
    July 12, 2011

    you will need to increase the number.  i believe it's total number of DIRECT_CONNECTIONS NetStreams, not number of distinct peers.