diff --git a/front/src/WebRtc/JitsiFactory.ts b/front/src/WebRtc/JitsiFactory.ts index d328a72d..3d58d9c2 100644 --- a/front/src/WebRtc/JitsiFactory.ts +++ b/front/src/WebRtc/JitsiFactory.ts @@ -197,7 +197,10 @@ class JitsiFactory { options.onload = () => doResolve(); //we want for the iframe to be loaded before triggering animations. this.jitsiApi = new window.JitsiMeetExternalAPI(domain, options); - this.jitsiApi.executeCommand("displayName", playerName); + + this.jitsiApi.addListener("videoConferenceJoined", () => { + this.jitsiApi?.executeCommand("displayName", playerName); + }); this.jitsiApi.addListener("audioMuteStatusChanged", this.audioCallback); this.jitsiApi.addListener("videoMuteStatusChanged", this.videoCallback);