I am new to Jitsi, but I have been able to get setup with self-hosting Jitsi Meet (along with the backend JVB, Jicofo, etc), and I am trying to figure out a way for my app server to monitor how many people are in a meeting. Ideally, this would be done with a RESt api, either my app server polls Jitsi or Jitsi calls a method when a user joins or leaves. Has anyone accomplished this in the past, or have any guidance/suggestions on how to go about it?
If you just need to know the number of room occupants at a specific point in time, then metadata’s suggestion above would be the way to go.
If you need an actual list of participants, the only way I know (which doesn’t say much ) is to make your REST API calls from a prosody modules.
The simplest would be to add you call to the speaker_stats function in /usr/share/jitsi-meet/prosody_plugins/ext_events.lib.lua. This will get called at the end of a meeting, and
the speakerStats argument will contain details of all meeting participants.
If you need more real-time information, e.g. API calls each time user leaves or joins, you will need to write your own prosody component and hook into the muc-occupant-joined and muc-occupant-pre-leave events.