diff --git a/conference.js b/conference.js index 2716bf33c..18998f287 100644 --- a/conference.js +++ b/conference.js @@ -1141,8 +1141,11 @@ export default { return room.getParticipants(); }, + /** + * Used by Jibri to detect when it's alone and the meeting should be terminated. + */ get membersCount() { - return room.getParticipants().length + 1; + return room.getParticipants().filter(p => !p.isHidden()).length + 1; }, /**