Ensure group audio-only calls don't switch on the webcam on join (#20234)

Pass isAudioOnly flag to jitsi SDK
pull/20251/head
James Salter 2021-12-17 19:54:57 +11:00 committed by GitHub
parent b7f48479f3
commit 9e1f393224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ let jitsiAuth: string;
let roomId: string; let roomId: string;
let openIdToken: IOpenIDCredentials; let openIdToken: IOpenIDCredentials;
let roomName: string; let roomName: string;
let startAudioOnly: boolean;
let widgetApi: WidgetApi; let widgetApi: WidgetApi;
let meetApi: any; // JitsiMeetExternalAPI let meetApi: any; // JitsiMeetExternalAPI
@ -107,6 +108,7 @@ let meetApi: any; // JitsiMeetExternalAPI
jitsiAuth = qsParam('auth', true); jitsiAuth = qsParam('auth', true);
roomId = qsParam('roomId', true); roomId = qsParam('roomId', true);
roomName = qsParam('roomName', true); roomName = qsParam('roomName', true);
startAudioOnly = qsParam('isAudioOnly', true) === "true";
if (widgetApi) { if (widgetApi) {
await readyPromise; await readyPromise;
@ -238,6 +240,9 @@ function joinConference() { // event handler bound in HTML
MAIN_TOOLBAR_BUTTONS: [], MAIN_TOOLBAR_BUTTONS: [],
VIDEO_LAYOUT_FIT: "height", VIDEO_LAYOUT_FIT: "height",
}, },
configOverwrite: {
startAudioOnly,
},
jwt: jwt, jwt: jwt,
}; };