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
feat(api) allow always hiding remote videos for 1-1 calls
Tudor-Ovidiu Avram6b095b979420
diff --git a/config.js b/config.jsindex 275ad6bdb3..187de0c419 100644--- a/config.js+++ b/config.js@@ -392,7 +392,9 @@ var config = {// enableClosePage: false,// Disable hiding of remote thumbnails when in a 1-on-1 conference call.- // disable1On1Mode: false,+ // Setting this to null, will also disable showing the remote videos+ // when the toolbar is shown on mouse movements+ // disable1On1Mode: null | false | true,// Default language for the user interface.// defaultLanguage: 'en',diff --git a/react/features/filmstrip/functions.web.js b/react/features/filmstrip/functions.web.jsindex 420ed5aa7a..9d4932ff4a 100644--- a/react/features/filmstrip/functions.web.js+++ b/react/features/filmstrip/functions.web.js@@ -66,6 +66,7 @@ export function shouldRemoteVideosBeVisible(state: Object) {// in the filmstrip.const participantCount = getParticipantCountWithFake(state);let pinnedParticipant;+ const { disable1On1Mode } = state['features/base/config'];return Boolean(participantCount > 2@@ -73,11 +74,12 @@ export function shouldRemoteVideosBeVisible(state: Object) {// Always show the filmstrip when there is another participant to// show and the local video is pinned, or the toolbar is displayed.|| (participantCount > 1+ && disable1On1Mode !== null&& (state['features/toolbox'].visible|| ((pinnedParticipant = getPinnedParticipant(state))&& pinnedParticipant.local)))- || state['features/base/config'].disable1On1Mode);+ || disable1On1Mode);}/**