inspect_jitsi.sync.count module#
get_participant_count: a one-shot count of who's in a Jitsi Meet room.
Briefly opens a JitsiConference, reads the
participant count, and closes it again - see that class and the
inspect_jitsi.xmpp.connection module docstring for why joining the room is
necessary and what it means in practice (a brief join/leave blip other
participants may notice).
- inspect_jitsi.sync.count.get_participant_count(conference_url, nick=None, name=None, anonymous_domain=None, muc_domain=None, timeout=10)[source]#
Return the number of participants currently in a Jitsi Meet room.
- Parameters:
conference_url (
str) – e.g. "https://meet.example.com/SomeRoomName".nick (
str|None) – the MUC nickname to join under. Random if not given.name (
str|None) – the display name (XEP-0172) to disclose when joining. No display name is disclosed if not given.anonymous_domain (
str|None) – override the XMPP domain used for stream/login. Auto-discovered from the site's /config.js if not given.muc_domain (
str|None) – override the MUC component domain (e.g. "muc.meet.jitsi" or "conference.example.com"). Auto-discovered if not given.timeout (
float) – seconds to wait for each network step.
- Return type:
- Returns:
Number of people already in the room, not counting this probe (0 if the room is empty).
- Raises:
inspect_jitsi.xmpp.JitsiConnectionError – the XMPP connection failed or was lost (refused, dropped, timed out, or an unparseable server response).