Sfoglia il codice sorgente

feat(api) allow always hiding remote videos for 1-1 calls

j8
Tudor-Ovidiu Avram 4 anni fa
parent
commit
6b095b9794
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 3
    1
      config.js
  2. 3
    1
      react/features/filmstrip/functions.web.js

+ 3
- 1
config.js Vedi File

@@ -392,7 +392,9 @@ var config = {
392 392
     // enableClosePage: false,
393 393
 
394 394
     // Disable hiding of remote thumbnails when in a 1-on-1 conference call.
395
-    // disable1On1Mode: false,
395
+    // Setting this to null, will also disable showing the remote videos
396
+    // when the toolbar is shown on mouse movements
397
+    // disable1On1Mode: null | false | true,
396 398
 
397 399
     // Default language for the user interface.
398 400
     // defaultLanguage: 'en',

+ 3
- 1
react/features/filmstrip/functions.web.js Vedi File

@@ -66,6 +66,7 @@ export function shouldRemoteVideosBeVisible(state: Object) {
66 66
     // in the filmstrip.
67 67
     const participantCount = getParticipantCountWithFake(state);
68 68
     let pinnedParticipant;
69
+    const { disable1On1Mode } = state['features/base/config'];
69 70
 
70 71
     return Boolean(
71 72
         participantCount > 2
@@ -73,11 +74,12 @@ export function shouldRemoteVideosBeVisible(state: Object) {
73 74
             // Always show the filmstrip when there is another participant to
74 75
             // show and the  local video is pinned, or the toolbar is displayed.
75 76
             || (participantCount > 1
77
+                && disable1On1Mode !== null
76 78
                 && (state['features/toolbox'].visible
77 79
                     || ((pinnedParticipant = getPinnedParticipant(state))
78 80
                         && pinnedParticipant.local)))
79 81
 
80
-            || state['features/base/config'].disable1On1Mode);
82
+            || disable1On1Mode);
81 83
 }
82 84
 
83 85
 /**

Loading…
Annulla
Salva