Skip to content

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

fix: Stage filmstrip (#11495)

Robert Pintiliibb0d3b4c6636
diff --git a/react/features/filmstrip/reducer.js b/react/features/filmstrip/reducer.js
index 9898193a81..64dc99bb71 100644
--- a/react/features/filmstrip/reducer.js
+++ b/react/features/filmstrip/reducer.js
@@ -59,7 +59,7 @@ const DEFAULT_STATE = {
* @public
* @type {Number}
*/
- maxStageParticipants: 4,
+ maxStageParticipants: 1,
/**
* The custom audio volume levels per participant.
diff --git a/react/features/settings/components/web/MoreTab.js b/react/features/settings/components/web/MoreTab.js
index 11aed76bd6..8421222bd2 100644
--- a/react/features/settings/components/web/MoreTab.js
+++ b/react/features/settings/components/web/MoreTab.js
@@ -531,7 +531,11 @@ class MoreTab extends AbstractDialogTab<Props, State> {
* @returns {ReactElement}
*/
_renderMaxStageParticipantsSelect() {
- const { maxStageParticipants, t } = this.props;
+ const { maxStageParticipants, t, stageFilmstripEnabled } = this.props;
+
+ if (!stageFilmstripEnabled) {
+ return null;
+ }
const maxParticipantsItems = Array(MAX_ACTIVE_PARTICIPANTS).fill(0)
.map((no, index) => (
<DropdownItem
diff --git a/react/features/settings/functions.js b/react/features/settings/functions.js
index c772fd896f..727e286e1e 100644
--- a/react/features/settings/functions.js
+++ b/react/features/settings/functions.js
@@ -12,6 +12,7 @@ import { toState } from '../base/redux';
import { getHideSelfView } from '../base/settings';
import { parseStandardURIString } from '../base/util';
import { getBreakoutRoomsConfig, isInBreakoutRoom } from '../breakout-rooms/functions';
+import { isStageFilmstripEnabled } from '../filmstrip/functions';
import { isFollowMeActive } from '../follow-me';
import { isReactionsEnabled } from '../reactions/functions.any';
@@ -116,6 +117,7 @@ export function getMoreTabProps(stateful: Object | Function) {
const language = i18next.language || DEFAULT_LANGUAGE;
const configuredTabs = interfaceConfig.SETTINGS_SECTIONS || [];
const enabledNotifications = getNotificationsMap(stateful);
+ const stageFilmstripEnabled = isStageFilmstripEnabled(state);
// when self view is controlled by the config we hide the settings
const { disableSelfView, disableSelfViewSettings } = state['features/base/config'];
@@ -132,7 +134,8 @@ export function getMoreTabProps(stateful: Object | Function) {
showNotificationsSettings: Object.keys(enabledNotifications).length > 0,
showPrejoinPage: !state['features/base/settings'].userSelectedSkipPrejoin,
showPrejoinSettings: state['features/base/config'].prejoinConfig?.enabled,
- maxStageParticipants: state['features/filmstrip'].maxStageParticipants
+ maxStageParticipants: state['features/filmstrip'].maxStageParticipants,
+ stageFilmstripEnabled
};
}