Skip to content

Commit 9e1f393

Browse files
authored
Ensure group audio-only calls don't switch on the webcam on join (#20234)
Pass isAudioOnly flag to jitsi SDK
1 parent b7f4847 commit 9e1f393

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vector/jitsi/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ let jitsiAuth: string;
4646
let roomId: string;
4747
let openIdToken: IOpenIDCredentials;
4848
let roomName: string;
49+
let startAudioOnly: boolean;
4950

5051
let widgetApi: WidgetApi;
5152
let meetApi: any; // JitsiMeetExternalAPI
@@ -107,6 +108,7 @@ let meetApi: any; // JitsiMeetExternalAPI
107108
jitsiAuth = qsParam('auth', true);
108109
roomId = qsParam('roomId', true);
109110
roomName = qsParam('roomName', true);
111+
startAudioOnly = qsParam('isAudioOnly', true) === "true";
110112

111113
if (widgetApi) {
112114
await readyPromise;
@@ -238,6 +240,9 @@ function joinConference() { // event handler bound in HTML
238240
MAIN_TOOLBAR_BUTTONS: [],
239241
VIDEO_LAYOUT_FIT: "height",
240242
},
243+
configOverwrite: {
244+
startAudioOnly,
245+
},
241246
jwt: jwt,
242247
};
243248

0 commit comments

Comments
 (0)