All peers enter the same router up to config.routerScaleSize. Then go to the next one, and keep going until all routers are filled up to config.routerScaleSize. After that simple put peers into routers with least peers.

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-04 23:33:51 +02:00
parent 698a57cb3e
commit 381f9cd733
2 changed files with 103 additions and 16 deletions
+2
View File
@@ -60,6 +60,8 @@ module.exports =
// When truthy, the room will be open to all users when the first
// authenticated user has already joined the room.
activateOnHostJoin : true,
// Room size before spreading to new router
routerScaleSize : 20,
// Mediasoup settings
mediasoup :
{