Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(jaas) allow tile view to be disabled

Tudor-Ovidiu Avramdd8b220ff988
diff --git a/config.js b/config.js
index 71d659fc90..ef94d8ee1b 100644
--- a/config.js
+++ b/config.js
@@ -623,6 +623,9 @@ var config = {
// otherwise the app doesn't render it.
// moderatedRoomServiceUrl: 'https://moderated.jitsi-meet.example.com',
+ // If true, tile view will not be enabled automatically when the participants count threshold is reached.
+ // disableTileView: true,
+
// Hides the conference subject
// hideConferenceSubject: true
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index 76c8194128..95b0d8ddce 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -91,6 +91,7 @@ export default [
'disableRtx',
'disableSimulcast',
'disableThirdPartyRequests',
+ 'disableTileView',
'displayJids',
'doNotStoreRoom',
'e2eping',
diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js
index e77de62f5e..fa3455b645 100644
--- a/react/features/video-layout/functions.js
+++ b/react/features/video-layout/functions.js
@@ -82,6 +82,12 @@ export function shouldDisplayTileView(state: Object = {}) {
return false;
}
+ const { disableTileView } = state['features/base/config'];
+
+ if (disableTileView) {
+ return false;
+ }
+
const { tileViewEnabled } = state['features/video-layout'];
if (tileViewEnabled !== undefined) {