From 9e1f393224797efe7af0c26d68af512d12f9e3cd Mon Sep 17 00:00:00 2001 From: James Salter Date: Fri, 17 Dec 2021 19:54:57 +1100 Subject: [PATCH] Ensure group audio-only calls don't switch on the webcam on join (#20234) Pass isAudioOnly flag to jitsi SDK --- src/vector/jitsi/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index 308a08e4f2..f5993ff1b1 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -46,6 +46,7 @@ let jitsiAuth: string; let roomId: string; let openIdToken: IOpenIDCredentials; let roomName: string; +let startAudioOnly: boolean; let widgetApi: WidgetApi; let meetApi: any; // JitsiMeetExternalAPI @@ -107,6 +108,7 @@ let meetApi: any; // JitsiMeetExternalAPI jitsiAuth = qsParam('auth', true); roomId = qsParam('roomId', true); roomName = qsParam('roomName', true); + startAudioOnly = qsParam('isAudioOnly', true) === "true"; if (widgetApi) { await readyPromise; @@ -238,6 +240,9 @@ function joinConference() { // event handler bound in HTML MAIN_TOOLBAR_BUTTONS: [], VIDEO_LAYOUT_FIT: "height", }, + configOverwrite: { + startAudioOnly, + }, jwt: jwt, };