Skip to content

Commit

Permalink
Merge pull request #8352 from jitsi/tavram/allow-tileview-disabling
Browse files Browse the repository at this point in the history
feat(jaas) allow tile view to be disabled
  • Loading branch information
quitrk authored Jan 8, 2021
2 parents 80d7898 + dd8b220 commit 6f5534f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions react/features/base/config/configWhitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default [
'disableRtx',
'disableSimulcast',
'disableThirdPartyRequests',
'disableTileView',
'displayJids',
'doNotStoreRoom',
'e2eping',
Expand Down
6 changes: 6 additions & 0 deletions react/features/video-layout/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f5534f

Please sign in to comment.