浏览代码

Merge pull request #8352 from jitsi/tavram/allow-tileview-disabling

feat(jaas) allow tile view to be disabled
j8
Avram Tudor 4 年前
父节点
当前提交
6f5534fcb6
没有帐户链接到提交者的电子邮件
共有 3 个文件被更改,包括 10 次插入0 次删除
  1. 3
    0
      config.js
  2. 1
    0
      react/features/base/config/configWhitelist.js
  3. 6
    0
      react/features/video-layout/functions.js

+ 3
- 0
config.js 查看文件

@@ -623,6 +623,9 @@ var config = {
623 623
     // otherwise the app doesn't render it.
624 624
     // moderatedRoomServiceUrl: 'https://moderated.jitsi-meet.example.com',
625 625
 
626
+    // If true, tile view will not be enabled automatically when the participants count threshold is reached.
627
+    // disableTileView: true,
628
+
626 629
     // Hides the conference subject
627 630
     // hideConferenceSubject: true
628 631
 

+ 1
- 0
react/features/base/config/configWhitelist.js 查看文件

@@ -91,6 +91,7 @@ export default [
91 91
     'disableRtx',
92 92
     'disableSimulcast',
93 93
     'disableThirdPartyRequests',
94
+    'disableTileView',
94 95
     'displayJids',
95 96
     'doNotStoreRoom',
96 97
     'e2eping',

+ 6
- 0
react/features/video-layout/functions.js 查看文件

@@ -82,6 +82,12 @@ export function shouldDisplayTileView(state: Object = {}) {
82 82
         return false;
83 83
     }
84 84
 
85
+    const { disableTileView } = state['features/base/config'];
86
+
87
+    if (disableTileView) {
88
+        return false;
89
+    }
90
+
85 91
     const { tileViewEnabled } = state['features/video-layout'];
86 92
 
87 93
     if (tileViewEnabled !== undefined) {

正在加载...
取消
保存