Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0cfd97b

Browse files
authored
Add API params to mute audio and/or video in Jitsi calls by default (#10376)
Signed-off-by: Dominik Henneke <[email protected]>
1 parent c6b6480 commit 0cfd97b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/jitsi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ _Hash/fragment (formatted as a query string)_:
1919
- `conferenceId`: The room or conference ID to connect Jitsi Meet to.
2020
- `isAudioOnly`: Boolean for whether this is a voice-only conference. May not
2121
be present, should default to `false`.
22+
- `startWithAudioMuted`: Boolean for whether the calls start with audio
23+
muted. May not be present.
24+
- `startWithVideoMuted`: Boolean for whether the calls start with video
25+
muted. May not be present.
2226
- `displayName`: The display name of the user viewing the widget. May not
2327
be present or could be null.
2428
- `avatarUrl`: The HTTP(S) URL for the avatar of the user viewing the widget. May

src/utils/WidgetUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ export default class WidgetUtils {
506506
"conferenceDomain=$domain",
507507
"conferenceId=$conferenceId",
508508
"isAudioOnly=$isAudioOnly",
509+
"startWithAudioMuted=$startWithAudioMuted",
510+
"startWithVideoMuted=$startWithVideoMuted",
509511
"isVideoChannel=$isVideoChannel",
510512
"displayName=$matrix_display_name",
511513
"avatarUrl=$matrix_avatar_url",

test/utils/WidgetUtils-test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ describe("getLocalJitsiWrapperUrl", () => {
2727
"#conferenceDomain=$domain" +
2828
"&conferenceId=$conferenceId" +
2929
"&isAudioOnly=$isAudioOnly" +
30+
"&startWithAudioMuted=$startWithAudioMuted" +
31+
"&startWithVideoMuted=$startWithVideoMuted" +
3032
"&isVideoChannel=$isVideoChannel" +
3133
"&displayName=$matrix_display_name" +
3234
"&avatarUrl=$matrix_avatar_url" +

0 commit comments

Comments
 (0)