Hello,
I'd like to be sure to know precisly how is count the limitation of 3 p2p streams.
Does the limitation of 3 p2p streams apply only for one user, or for the whole room?
For example in room 1, i have
user 1 publish webcam stream to user 2 and user 2 publish webcam stream to user 1
user 3 publish webcam stream to user 4 and user 4 publish webcam stream to user 3
So i have 4 streams published in my room, but not for one user.
Do you consider that it is out of the limitation of 3 you talk about?
In the same idea, do you count only published streams or also received streams?
For example if i have in room 1:
user 1 publish webcam stream to user 2
user 1 publish sound stream to user 2
user received webcam and sound streams from user 2
So i have 4 streams for user 1, but only 2 published streams.
Do you consider that it is out of the limitation of 3 you talk about?
Is there any documentation available to get those detailed informations whithout disturbing you in forums?
Thanks
Seb
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Yes you are right . So, for private streams also it will take into account as we do not consider p2p private streams for calculation.
Yes, multicast is better option for having large number of p2p streams because even if you randomly increase the value of maxp2pstreampublish, still it won't guarantee to have that many p2p streams in one mesh without multicast. That’s why put that limit in first place for player 10 without multicast. Also, till now the player 10.1 source wasn't made available but in the coming update in next few days we will have be also giving out 10.1 source that will help you for any debugging with multicast.
Lastly, You are right, I will either put up the details in the doc or a blog post in a future release.
Thanks
Regards
Hironmay Basu
Views
Replies
Total Likes
Hi,
The way we calculate is number of users you are sending your stream to( excluding yourself) multiplied by number of stream any user is publishing. If this is more than 3 for any one of the user, then we don't allow p2p in player 10, though this parameter is configurable and you can increase it by assigning value to maxP2PStreamPublish which is a public property exposed from StreamManager.
Another point is you can user lot of p2p streams through multicast using our 10.1 swc and we don't enforce this 3 limit there.
Now, taking a sample case
Lets say there are two users 1 and 2
For e.g.
Case 1 : If user 1 publish webcam stream to user 2 and user 2 publish webcam stream to user 1 , then for either of the user , the value is 1( number of user excluding him) * 1( as he is just publishing only one webcam stream)
We don't take into account private streams now. So, the users will be all accounted for. Therefore, if you want more streams, I would suggest use either multicast 10.1 or increase the maxp2pstreampublish value.
Hope this helps
Thanks
Hironmay Basu
Views
Replies
Total Likes
Hello,
Thanks for the answer.
But your example is to simple to make it crystal clear.
I mean:
if in one room, i have two private discussions:
User 1 is publishing webcam and audio to User 2.
User 2 is publishing webcam and audio to User 1.
I count: 1*2 = 2. Ok?
But if in same time in same room i also have
User 3 is publishing webcam and audio to User 4.
User 4 is publishing webcam and audio to User 3.
Views
Replies
Total Likes
Hi,
Yes you are right . So, for private streams also it will take into account as we do not consider p2p private streams for calculation.
Yes, multicast is better option for having large number of p2p streams because even if you randomly increase the value of maxp2pstreampublish, still it won't guarantee to have that many p2p streams in one mesh without multicast. That’s why put that limit in first place for player 10 without multicast. Also, till now the player 10.1 source wasn't made available but in the coming update in next few days we will have be also giving out 10.1 source that will help you for any debugging with multicast.
Lastly, You are right, I will either put up the details in the doc or a blog post in a future release.
Thanks
Regards
Hironmay Basu
Views
Replies
Total Likes
Ok thanks,
Its all clear now.
Seb
Views
Replies
Total Likes
Views
Likes
Replies