Skip navigation
Currently Being Moderated

limit on number of P2P streams

Dec 9, 2009 9:58 AM

Is there a limit on the number of P2P streams allowed by the flash player?    I've got three way video chat working and there's a message in my debug log that says:  "The total stream limit for P2P streams have"   and then it cuts off.   I grepped the source and didn't find that warning/error message. 

So I'm guessing it's about to tell me the number of streams have been reached?   Beyond the fact that 3 upstream video chats is probably all most connections can handle, is this a hard limit in the player or a soft limit based on available bandwidth?

 

Thanks for the help.

 

-Eric

 
Replies
  • Currently Being Moderated
    Dec 9, 2009 10:39 AM   in reply to esteimle

    Yes, LCCS has a limit on the number of P2P audio/video streams you can have. It is dependant on number on users as well as number of stream one user has.

     

    You won't find any error message and it will fall back to hub/spoke.

    It is not a hard limit by player though player has its own limit, but it's a limit LCCS puts based on bandwidth constraints since we deal with only audio and video P2P streams currently.

     

    Thanks

    Hironmay Basu

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2009 10:53 AM   in reply to esteimle

    Hi,

     

    If you are doing both audio and video for all three , It won't work. However, if you are doing only video then all three can share video.

    So, the logic says the number of streams of any user multiplied by number of other users (except him) should not be greater than 3. So, if I am sharing both audio and video and there are two more people, then it becomes 4, which makes it fall back to hub-spoke.

     

    Hope this helps

    Thanks

    Hironmay Basu

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2009 11:26 AM   in reply to esteimle

    Hi,

     

    While we can't promise to increase it, but we will revisit this. The decision was a technical one based on the quality of A/V streams client can support and not a business one.

    As you can see when many people start sharing multiple streams, it creates a mesh and has bandwidth issues that client can handle primarily because these are audio/video streams, which are quite heavy in nature.

     

    Hope this helps

    Thanks

    Hironmay Basu

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2009 12:09 PM   in reply to Hironmay

    Yeah, in this case, for every user that's receiving your stream, you have

    to stream separately to them. So if I'm videochatting with 3 folks, I'm

    pushing 3 streams - it's a lot for most uplinks to handle (many have their

    hands full with just 1).

     

      What we could consider doing is adding an API to StreamManager, such that

    you could declare the stream limit and override how much pushing you think

    your users can handle.

     

      nigel

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 29, 2010 9:34 AM   in reply to Nigel Pegg

    Is is possible to specify that our audio stream should default to hub and spoke while the video stream still attempts a p2p connection?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 29, 2010 4:09 PM   in reply to schwabsauce

    We don't have that in the default components today, although you could extend audiopublisher and audiosubscriber (pretty easily, I'm thinking) to turn off the logic that tries to do anything p2p.

     

      nigel

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2010 2:11 PM   in reply to Hironmay

    I am getting this error when connecting two(2) endpoints: "The total stream limit for P2P streams have ". They are the only two users logged into the room and each are streaming camera and audio. Using the calculation as suggested (2 streams x 1 other user = 2 ) I should be within the permitted number of P2P streams yet my application continues to fall back to Hub & Spoke no matter what I try.

     

    Any guidance would be helpful.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2010 2:21 PM   in reply to davhed

    Hi,

     

    Though I am not sure why this is happening, and if there is there some zombie or not. However, you can set streamManager.maxP2PStreamPublish yto a higher value and you should be fine.

     

    Thanks

    Hironmay Basu

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2010 2:32 PM   in reply to Hironmay

    OK I'll keep a eye out for any zombies... got my shotgun handy just in case.

     

    I raised the max number and then received this error: "Peer to peer connection failed and timed out in Camera for user *****" What conditions can cause this error? It seems as thgouh the two points cannot see eachother via P2P...

     

    These units are on the same router. Shouldn't the P2P traffic, once a handshake is established, only traverse the router since that is the shortest possible P2P distance or am I missing something?

     


    Thanks!

     

    -David

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2010 2:35 PM   in reply to davhed

    This happens when there is some firewall or something else that blocks the p2p traffic ? I am not sure in your system whats going wrong. Any more information will be useful.

     

    Thanks

    Hironmay Basu

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points