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

Commit

Permalink
Add API params to mute audio and/or video in Jitsi calls by default (#…
Browse files Browse the repository at this point in the history
…10376)

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
  • Loading branch information
dhenneke committed Mar 15, 2023
1 parent c6b6480 commit 0cfd97b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/jitsi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ _Hash/fragment (formatted as a query string)_:
- `conferenceId`: The room or conference ID to connect Jitsi Meet to.
- `isAudioOnly`: Boolean for whether this is a voice-only conference. May not
be present, should default to `false`.
- `startWithAudioMuted`: Boolean for whether the calls start with audio
muted. May not be present.
- `startWithVideoMuted`: Boolean for whether the calls start with video
muted. May not be present.
- `displayName`: The display name of the user viewing the widget. May not
be present or could be null.
- `avatarUrl`: The HTTP(S) URL for the avatar of the user viewing the widget. May
Expand Down
2 changes: 2 additions & 0 deletions src/utils/WidgetUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ export default class WidgetUtils {
"conferenceDomain=$domain",
"conferenceId=$conferenceId",
"isAudioOnly=$isAudioOnly",
"startWithAudioMuted=$startWithAudioMuted",
"startWithVideoMuted=$startWithVideoMuted",
"isVideoChannel=$isVideoChannel",
"displayName=$matrix_display_name",
"avatarUrl=$matrix_avatar_url",
Expand Down
2 changes: 2 additions & 0 deletions test/utils/WidgetUtils-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ describe("getLocalJitsiWrapperUrl", () => {
"#conferenceDomain=$domain" +
"&conferenceId=$conferenceId" +
"&isAudioOnly=$isAudioOnly" +
"&startWithAudioMuted=$startWithAudioMuted" +
"&startWithVideoMuted=$startWithVideoMuted" +
"&isVideoChannel=$isVideoChannel" +
"&displayName=$matrix_display_name" +
"&avatarUrl=$matrix_avatar_url" +
Expand Down

0 comments on commit 0cfd97b

Please sign in to comment.