Browse Source

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

feat(jaas) allow tile view to be disabled
j8
Avram Tudor 4 years ago
parent
commit
6f5534fcb6
No account linked to committer's email address

+ 3
- 0
config.js View File

@@ -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 View File

@@ -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 View File

@@ -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) {

Loading…
Cancel
Save