Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Adds a config param startSilent to disable audio output.
damenchofaee1c139e36
diff --git a/conference.js b/conference.jsindex d401d7e16b..d09edf07f9 100644--- a/conference.js+++ b/conference.js@@ -792,6 +792,13 @@ export default {this.recorder = new Recorder();}+ if (config.startSilent) {+ APP.store.dispatch(showNotification({+ descriptionKey: 'notify.startSilentDescription',+ titleKey: 'notify.startSilentTitle'+ }));+ }+// XXX The API will take care of disconnecting from the XMPP// server (and, thus, leaving the room) on unload.return new Promise((resolve, reject) => {diff --git a/config.js b/config.jsindex 13b8a09e1a..8c3a442a8c 100644--- a/config.js+++ b/config.js@@ -90,6 +90,10 @@ var config = {// applied locally. FIXME: having these 2 options is confusing.// startWithAudioMuted: false,+ // Enabling it (with #params) will disable local audio output of remote+ // participants and to enable it back a reload is needed.+ // startSilent: false+// Video// Sets the preferred resolution (height) for local video. Defaults to 720.diff --git a/lang/main.json b/lang/main.jsonindex eec7a3c842..346fbb59f8 100644--- a/lang/main.json+++ b/lang/main.json@@ -478,6 +478,8 @@"mutedTitle": "You're muted!","raisedHand": "__name__ would like to speak.","somebody": "Somebody",+ "startSilentTitle": "You joined with no audio output!",+ "startSilentDescription": "Rejoin the meeting to enable audio","suboptimalExperienceDescription": "Eer... we are afraid your experience with __appName__ isn't going to be that great here. We are looking for ways to improve this but, until then, please try using one of the <a href='static/recommendedBrowsers.html' target='_blank'>fully supported browsers</a>.","suboptimalExperienceTitle": "Browser Warning","newDeviceCameraTitle": "New camera detected",diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 4e7b130392..80c936db16 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -1,4 +1,4 @@-/* global $, APP, interfaceConfig */+/* global $, APP, config, interfaceConfig *//* eslint-disable no-unused-vars */import React from 'react';@@ -199,6 +199,8 @@ SmallVideo.createStreamElement = function(stream) {if (isVideo) {element.setAttribute('muted', 'true');+ } else if (config.startSilent) {+ element.muted = true;}element.autoplay = true;diff --git a/react/features/base/config/functions.any.js b/react/features/base/config/functions.any.jsindex 0caefd1fbe..703e4f209f 100644--- a/react/features/base/config/functions.any.js+++ b/react/features/base/config/functions.any.js@@ -132,6 +132,7 @@ const WHITELISTED_KEYS = ['startAudioMuted','startAudioOnly','startBitrate',+ 'startSilent','startScreenSharing','startVideoMuted','startWithAudioMuted',