6+ users MCU TO SFU Switch in Video Room

614 views
Skip to first unread message

hakimu junglu

unread,
Oct 5, 2016, 3:34:00 AM10/5/16
to meetecho-janus
Hi,

I'am new to Janus, yesterday i was playing with the VideoRoom plugin and everything went good (room creation, connexion etc...).
Actually my question is to know were i should modify the code to disable the SFU switch for the 6+ late users that join.
In other words i would like to stay in MCU mode even if i have 6+ video room users.
If i can have the spot where the action occurs it would greatly help me understand Janus.

Thank you and have a good day.

Lorenzo Miniero

unread,
Oct 5, 2016, 4:29:06 AM10/5/16
to meetecho-janus
You need to create rooms with a higher limit of participant (check the config for that, via API it's the same). If you're using the demo as a basis for the client code, instead, you'll have to mess with that a bit, as for the sake of simplicity we only have 6 fixed div slots to put stuff in.

L.

hakimu junglu

unread,
Oct 5, 2016, 5:48:15 AM10/5/16
to meetecho-janus

Thank you for your answer,  i may need a last advice from you before getting deep into C code (wich i allready read).

When you mention configuration is it about :
 
- The POST request from the JS to the C plug-in for the creation of a room where the number of publishers can be set. (Picture Nb : 1)
 
- The janus.plugin.videoroom.cfg.sample file where a Publishers Variable can be set. (Picture Nb: 2)

- A C code variable in the Janus_videoroom.c as in line 800 for example. (Picture Nb: 3)

Thank you for your attention.
Picture1.png
Picture2.png
Picture3.png

Lorenzo Miniero

unread,
Oct 5, 2016, 5:54:07 AM10/5/16
to meetecho-janus
No need to bash your head on the C code, we don't have any fixed limit on the numer of people that can publish in a room there. The only limit is defined from a configuration persective, so it's the cfg file (and the publishers property) you should look at. Again, changing it only there will not make the VideoRoom demo accept more people, as we have a 6 users limit in the JavaScript code too.

L.

hakimu junglu

unread,
Oct 5, 2016, 10:24:59 AM10/5/16
to meetecho-janus


Thank you for your answer.

I tweaked the code this morning and i can see a change in bandwith when modifying JS and Conf data as you prescribed.
I will update a solution here so that it can help further users.

I just want to know if there is a way to clearly see if we are connecting to server in SFU or MCU mode.
As i can see changes in bandwith while testing, i'am not 100% sure if i am actually in SFU or MCU.
Is there a debug way to find out or a more scientific way to monitor it.

Thank you for your time.

Lorenzo Miniero

unread,
Oct 5, 2016, 11:31:24 AM10/5/16
to meetecho-janus
Not sure I understand your question. The VideoRoom plugin is an SFU, we don't have a video MCU in the stock plugins in Janus.

L.

hakimu junglu

unread,
Oct 11, 2016, 7:14:19 AM10/11/16
to meetecho-janus
Sorry i just got confused. I understand now. Thank you for your help Mr Miniero.

Dejan Popov

unread,
Nov 2, 2016, 2:07:24 PM11/2/16
to meetecho-janus
Is there a reason why 6 is set as limit? Or Janus as SFU can support many more viewers? depending on hardware

Lorenzo Miniero

unread,
Nov 3, 2016, 4:49:12 AM11/3/16
to meetecho-janus
Dejan,

there is no limit, and this is quite well explained in the thread you just replied to. Please read it through.

L.
Reply all
Reply to author
Forward
0 new messages