I have a jitsi embedded in a page, using the External API.
I need to check if the user is a moderator (for letting him access to extra feature I’ve made, outside of the iFrame).
Currently, the External API only have an event that is fired when the role is assigned (from ‘none’ to ‘moderator’). But I need a way to ask with a bool method.
In the LowLevel API, there is APP.conference._room.isModerator(). Obviously, it’s not easy and not really reliable to access APP.conference._room withing the External API.
I could use the iFrame contentWindow then crawl for APP then conference etc… But this object doesn’t pop really quickly. I can maybe use a timeout to wait for it, but I really not good.
@saghul is getParticipantsInfo fully supported now? I tried on my own deployment (1.0.4628-1) and https://meet.jit.si/external_api.js and in both cases the array is empty (when multiple members are in the room). (related)
You mean… I actually need to have others in the room?
In case this may help others: Looks like if you are using JWT / authentication, you actually need to have someone else other than yourself in the room. The “2 tabs” trick will not populate that list, even though the conference media is flowing. btw - I could also see my info in addition to others.