浏览代码

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

j8
Tudor-Ovidiu Avram 4 年前
父节点
当前提交
6b095b9794
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 3
    1
      config.js
  2. 3
    1
      react/features/filmstrip/functions.web.js

+ 3
- 1
config.js 查看文件

392
     // enableClosePage: false,
392
     // enableClosePage: false,
393
 
393
 
394
     // Disable hiding of remote thumbnails when in a 1-on-1 conference call.
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
     // Default language for the user interface.
399
     // Default language for the user interface.
398
     // defaultLanguage: 'en',
400
     // defaultLanguage: 'en',

+ 3
- 1
react/features/filmstrip/functions.web.js 查看文件

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

正在加载...
取消
保存