Videoroom max publishers

1,307 views
Skip to first unread message

Claudio Lopez

unread,
Jun 30, 2016, 4:46:26 PM6/30/16
to meetecho-janus
Hi
  We are developing a service based on the videoroom application. We are creating rooms dinamically, but have noticed that once we create a room with a specific room number and certain max  publishers value , this number becomes sort of persistent. If we close all sessions in a room and use the same room number again with a different max publishers value, it will have the max publishers set in the first creation. We use this code in every creation of the room, just changing the publishers value.

                var newRoom = {"request": "create", "room": nroom, "ptype": "publisher", "publishers" : 4, "display": ''};
                mcutest.send({"message": newRoom});
  
  Restarting Janus does not change the limit...
  May be this is expected, but just want to be sure we are getting it right...

Regards
Claudio

Lorenzo Miniero

unread,
Jul 1, 2016, 3:39:17 AM7/1/16
to meetecho-janus
Yes, at the moment when you specify a max publishers for a room, that can't be changed anymore. Anyway, if you saved the room in the configuration, you can change the value there when rebooting Janus and it will be used instead.

L.

Claudio Lopez

unread,
Jul 1, 2016, 9:17:07 AM7/1/16
to meetecho-janus
OK.
  Very clear now. 
  Thanks Lorenzo

Kaplan

unread,
Nov 25, 2016, 7:14:58 AM11/25/16
to meetecho-janus
If we create the rooms dynamically using the javascript API, I understand that once the room is created with a max publishers, there is no way to change it. however, does a janus restart and a new request with a different create api and a new publishers setting work to change the limit?? From Claudio's comment "Restarting Janus does not change the limit.." and your reply "Yes, at the moment when you specify a max publishers for a room, that can't be changed anymore."

Seems to indicate that its somehow unchangeable for dynamic rooms.   Is that the case?? 
Is there a way to have unlimited publishers? or should I set a really high number instead, say 1000"?

I am concerned because I have webinar type configuration with a videoroom where I am expecting to have many "active" publishers, say 6, (but could be more or less), and perhaps 300 participants.   However these participants also join the video room as "dummy publishers", for the sole purpose of getting the publisher join/leave events and attaching new streams to them, as per the janus samples..

Should my MAX publisher setting then be close to  306  for this example?? 

Kaplan

unread,
Nov 25, 2016, 7:35:18 AM11/25/16
to meetecho-janus
Sorry for the noise, but I was able to confirm that restarting janus, does indeed allow for a DIFFERENT publisher maximum...So thats good news

Waiting to hear on whether the MAX publishers number only affects ACTIVE publishers vs "dummy publishers" and whether there is a way to have no upper limit...

Lorenzo Miniero

unread,
Nov 25, 2016, 7:36:02 AM11/25/16
to meetecho-janus
max publishers only applies to max active publishers at the same time, so those who publish.

L.

Charles Smith

unread,
Feb 18, 2020, 11:43:38 AM2/18/20
to meetecho-janus
@Kaplan
@Lorenzo Miniero

So  by setting a really high number like 1000" is it the right way ? becuase restarting janus everytime is it good ?
Reply all
Reply to author
Forward
0 new messages