Is it possible to get number of room participants using API call?

#1

Currently I have self-hosted Jitsi Meet on my server and it work normally just as https://meet.jit.si/.
And I have develop a mobile application that use jitsi as video call feature (my app is fork of https://github.com/vector-im/riot-android)
Is it possible from my Android application to make http request to certain url to get participants information? (in this case, information about total number of particapants is enough)

0 Likes

#2

You can enable this module: https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua

0 Likes

#3

Thanks for the information
I have installed and enabled the module you mention above, but I don’t seem to find a way to call that endpoint. I have tried to make http request to my prosody port. Is there any documentation or something related to that module on how to call the API?

0 Likes

#4

You will normally proxy it through the webserver, probably under different domain or subdomain from the jitsi-meet deployment, here is how I have it in my nginx config:

location = /room-size {
        proxy_pass      http://localhost:5280/room-size?domain=$http_host&$args;
        proxy_set_header X-Forwarded-For $remote_addr;
        # proxy_set_header Host $http_host;
        proxy_set_header Host yourjitsi.domain.com;

        add_header 'Access-Control-Allow-Origin' '*';
    }
1 Like