Hello,
I hope my post is respecting community guildelines, please tell me if anything is wrong.
I have to work with the external API of Jitsi.
The iFrame is already embedded in the project where I’m working.
It’s a web app, running on node and express. Nothing too special.
I have a need where I have to listen to a specific events (which are LOCAL_STATE_UPDATED and REMOTE_STATE_UPDATED).
The iFrame API seems to not provide a listener for those.
I’ve seen that if I use the ‘APP’ object inside a meet.jit.si conference, I have access to a method called ‘addConferenceListener’ inside the ‘conference’ property.
Which actually let me listen to my two events (LOCAL/REMOTE + _STATE_UPDATED).
But, in my embedded iFrame, I do not have this property.
I obviously get this error :
Uncaught ReferenceError: APP is not defined
at <anonymous>:1:1
I do not understand why.
So far, I understood that the ‘APP’ object is a wrapper that use the lib-jitsi-meet API (the low level one). So why do I not have access to it in my embedded iFrame (on localhost AND on the hosted domain which is the production mode), but I have access in the official meet jit si website ?
Thanks.
I can provide more informations if needed.