Feature request - Add webcamsOnlyForModerator value in getMeetings response

40 views
Skip to first unread message

Mario Harjač

unread,
May 3, 2021, 5:38:36 AM5/3/21
to BigBlueButton-dev
Hi everyone,

I'm working on notification system which would alert me about server overload based on the number of video streams and for this calculation to be correct, I have to know value of the webcamsOnlyForModerator flag. It would be super cool if this value could be included in getMeetings response so I wouldn't have to pool this information from mongoDB. I saw this discussion (https://groups.google.com/g/bigbluebutton-dev/c/jZgS6gqh0u4/m/KDtJY2yXAwAJ) about changing how scalelite distributes load across a cluster, and I think this would also be required if it will be taking number of video streams into consideration.

I dug through source code a little bit I think (I'm not a developer) it only requires adding one line of code to get-meetings.ftlx file:

diff --git a/bigbluebutton-web/src/main/webapp/WEB-INF/freemarker/get-meetings.ftlx b/bigbluebutton-web/src/main/webapp/WEB-INF/freemarker/get-meetings.ftlx
index 609f328aa7..b3c2cefef1 100755
--- a/bigbluebutton-web/src/main/webapp/WEB-INF/freemarker/get-meetings.ftlx
+++ b/bigbluebutton-web/src/main/webapp/WEB-INF/freemarker/get-meetings.ftlx
@@ -28,6 +28,7 @@
         <listenerCount>${meeting.getNumListenOnly()}</listenerCount>
         <voiceParticipantCount>${meeting.getNumVoiceJoined()}</voiceParticipantCount>
         <videoCount>${meeting.getNumVideos()}</videoCount>
+        <webcamsOnlyForModerator>${meeting.getWebcamsOnlyForModerator()}</webcamsOnlyForModerator>
         <maxUsers>${meeting.getMaxUsers()}</maxUsers>
         <moderatorCount>${meeting.getNumModerators()}</moderatorCount>
         <attendees>
@@ -84,4 +85,4 @@
   <message>${msg}</message>
   </#list>
 </response>
-</#compress>
\ No newline at end of file

Any thoughts on this?

Regards,
Mario

Reply all
Reply to author
Forward
0 new messages