Skip to content

Commit

Permalink
Ensure group audio-only calls don't switch on the webcam on join (#20234
Browse files Browse the repository at this point in the history
)

Pass isAudioOnly flag to jitsi SDK
  • Loading branch information
novocaine authored Dec 17, 2021
1 parent b7f4847 commit 9e1f393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vector/jitsi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -238,6 +240,9 @@ function joinConference() { // event handler bound in HTML
MAIN_TOOLBAR_BUTTONS: [],
VIDEO_LAYOUT_FIT: "height",
},
configOverwrite: {
startAudioOnly,
},
jwt: jwt,
};

Expand Down

0 comments on commit 9e1f393

Please sign in to comment.