Hi community,
I am experiencing a problem with the Jitsi iframe listener (EventEmitter).
I have tried adding the jitsi iframe in an ionic application, below are the details:
C:\...\TestJitsi>ionic info
Ionic:
Ionic CLI : 6.12.1 (C:\...\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.6.9
@angular-devkit/build-angular : 0.1102.14
@angular-devkit/schematics : 11.1.4
@angular/cli : 11.1.4
@ionic/angular-toolkit : 3.1.1
Utility:
cordova-res : not installed
native-run : 1.2.2
System:
NodeJS : v14.15.0 (C:\Program Files\nodejs\node.exe)
npm : 6.14.8
OS : Windows 10
I can see the iframe correctly and I can start the meetings. However, all instantiated listeners never trigger. Below is a snippet of the code where I define the listeners:
this.api = new JitsiMeetExternalAPI("meet.jit.si", options);
this.api.on('log', (log: any) => {
console.log(log);
})
this.api.addListener('videoConferenceLeft', () => {
console.log("videoConferenceLeft");
})
this.api.addListener('videoConferenceJoined', () => {
console.log("videoConferenceJoined")
})
this.api.addListener('participantJoined', (participant: any) => {
console.log("participantJoined");
})
this.api.addListener('participantLeft', (participant: any) => {
console.log("participantLeft");
})
this.api.addListener('readyToClose', () => {
console.log("readyToCloses");
})
Some additional information:
-
I tried using on() instead of addListener(), but the result did not change.
-
No errors are reported in the browser console.
Is there any known problem with the integration of Jitsi Iframe with ionic?
Any suggestions/workarounds are welcome.
Fabrizio