[mirotalksfu] - Add global lobby 4 room

هذا الالتزام موجود في:
Miroslav Pejic
2025-09-06 09:47:14 +02:00
الأصل 21e2386d1e
التزام a7c4e5459c
9 ملفات معدلة مع 121 إضافات و108 حذوفات

عرض الملف

@@ -75,6 +75,7 @@ module.exports = class Room {
this.shareMediaData = {};
this.maxParticipants = config?.moderation?.room?.maxParticipants || 1000;
this.globalLobby = config?.moderation?.room?.lobby || false;
}
// ####################################################
@@ -108,6 +109,7 @@ module.exports = class Room {
peers: JSON.stringify([...this.peers]),
maxParticipants: this.maxParticipants,
maxParticipantsReached: this.peers.size > this.maxParticipants,
globalLobby: this.globalLobby,
};
}

عرض الملف

@@ -64,7 +64,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.9.56
* @version 1.9.57
*
*/
@@ -1579,6 +1579,7 @@ function startServer() {
moderation: {
room: {
maxParticipants: config?.moderation?.room?.maxParticipants || 1000,
lobby: config?.moderation?.room?.lobby || false,
},
},

عرض الملف

@@ -1368,11 +1368,13 @@ module.exports = {
* Core Settings:
* --------------
* - room.maxParticipants: Maximum number of participants allowed per room.
* - lobby: Enable/disable lobby feature for pre-approval of participants.
* Adjust to limit room size and manage server load.
*/
moderation: {
room: {
maxParticipants: parseInt(process.env.ROOM_MAX_PARTICIPANTS) || 1000, // Maximum participants per room
lobby: process.env.ROOM_LOBBY === 'true', // Enable lobby feature
},
},