From be1258db21255616e312fb11d54299321bee5f66 Mon Sep 17 00:00:00 2001 From: James Salter Date: Fri, 17 Dec 2021 10:14:42 +1100 Subject: [PATCH 1/2] 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 763c96ef7c5..56bf71a44e9 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -47,6 +47,7 @@ let jitsiAuth: string; let roomId: string; let openIdToken: IOpenIDCredentials; let roomName: string; +let startAudioOnly: string; let widgetApi: WidgetApi; let meetApi: any; // JitsiMeetExternalAPI @@ -108,6 +109,7 @@ let meetApi: any; // JitsiMeetExternalAPI jitsiAuth = qsParam('auth', true); roomId = qsParam('roomId', true); roomName = qsParam('roomName', true); + startAudioOnly = qsParam('isAudioOnly', false); if (widgetApi) { await readyPromise; @@ -239,6 +241,9 @@ function joinConference() { // event handler bound in HTML MAIN_TOOLBAR_BUTTONS: [], VIDEO_LAYOUT_FIT: "height", }, + configOverwrite: { + startAudioOnly, + }, jwt: jwt, }; From 0e0eec809f547fd6ec3f001eff158a8bd6cd2877 Mon Sep 17 00:00:00 2001 From: James Salter Date: Fri, 17 Dec 2021 10:55:34 +1100 Subject: [PATCH 2/2] Fix case where isAudioOnly is false..! --- src/vector/jitsi/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index 89abbe7dfa7..f5993ff1b19 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -46,7 +46,7 @@ let jitsiAuth: string; let roomId: string; let openIdToken: IOpenIDCredentials; let roomName: string; -let startAudioOnly: string; +let startAudioOnly: boolean; let widgetApi: WidgetApi; let meetApi: any; // JitsiMeetExternalAPI @@ -108,7 +108,7 @@ let meetApi: any; // JitsiMeetExternalAPI jitsiAuth = qsParam('auth', true); roomId = qsParam('roomId', true); roomName = qsParam('roomName', true); - startAudioOnly = qsParam('isAudioOnly', false); + startAudioOnly = qsParam('isAudioOnly', true) === "true"; if (widgetApi) { await readyPromise;