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(disable-filmstrip) Fix disabling filmstrim through config - there was a problem with pinning the participants from the Participants pane with the previous approach

Horatiu Muresan33fc6e2f3fd2
diff --git a/react/features/conference/components/web/Conference.tsx b/react/features/conference/components/web/Conference.tsx
index 2ca498e0e0..0aff233520 100644
--- a/react/features/conference/components/web/Conference.tsx
+++ b/react/features/conference/components/web/Conference.tsx
@@ -15,7 +15,6 @@ import Chat from '../../../chat/components/web/Chat';
import MainFilmstrip from '../../../filmstrip/components/web/MainFilmstrip';
import ScreenshareFilmstrip from '../../../filmstrip/components/web/ScreenshareFilmstrip';
import StageFilmstrip from '../../../filmstrip/components/web/StageFilmstrip';
-import { isFilmstripDisabled } from '../../../filmstrip/functions.web';
import CalleeInfoContainer from '../../../invite/components/callee-info/CalleeInfoContainer';
import LargeVideo from '../../../large-video/components/LargeVideo.web';
import LobbyScreen from '../../../lobby/components/web/LobbyScreen';
@@ -64,11 +63,6 @@ interface IProps extends AbstractProps, WithTranslation {
*/
_backgroundAlpha?: number;
- /**
- * Whether the vertical/horizonal filmstrip is disabled.
- */
- _filmstripDisabled: boolean;
-
/**
* Are any overlays visible?
*/
@@ -205,14 +199,12 @@ class Conference extends AbstractConference<IProps, any> {
*/
render() {
const {
- _filmstripDisabled,
_isAnyOverlayVisible,
_layoutClassName,
_notificationsVisible,
_overflowDrawer,
_showLobby,
_showPrejoin,
- _shouldDisplayTileView,
t
} = this.props;
@@ -238,7 +230,7 @@ class Conference extends AbstractConference<IProps, any> {
_showPrejoin || _showLobby || (<>
<StageFilmstrip />
<ScreenshareFilmstrip />
- { (!_filmstripDisabled || _shouldDisplayTileView) && <MainFilmstrip /> }
+ <MainFilmstrip />
</>)
}
</div>
@@ -404,7 +396,6 @@ function _mapStateToProps(state: IReduxState) {
return {
...abstractMapStateToProps(state),
_backgroundAlpha: backgroundAlpha,
- _filmstripDisabled: isFilmstripDisabled(state),
_isAnyOverlayVisible: Boolean(getOverlayToRender(state)),
_layoutClassName: LAYOUT_CLASSNAMES[getCurrentLayout(state) ?? ''],
_mouseMoveCallbackInterval: mouseMoveCallbackInterval,
diff --git a/react/features/filmstrip/components/web/Filmstrip.tsx b/react/features/filmstrip/components/web/Filmstrip.tsx
index dacf39ec77..7cfb38e419 100644
--- a/react/features/filmstrip/components/web/Filmstrip.tsx
+++ b/react/features/filmstrip/components/web/Filmstrip.tsx
@@ -43,6 +43,7 @@ import {
isStageFilmstripTopPanel,
shouldRemoteVideosBeVisible
} from '../../functions';
+import { isFilmstripDisabled } from '../../functions.web';
import AudioTracksContainer from './AudioTracksContainer';
import Thumbnail from './Thumbnail';
@@ -74,6 +75,11 @@ interface IProps extends WithTranslation {
*/
_disableSelfView: boolean;
+ /**
+ * Whether vertical/horizontal filmstrip is disabled through config.
+ */
+ _filmstripDisabled: boolean;
+
/**
* The height of the filmstrip.
*/
@@ -333,6 +339,7 @@ class Filmstrip extends PureComponent <IProps, IState> {
const {
_currentLayout,
_disableSelfView,
+ _filmstripDisabled,
_localScreenShareId,
_mainFilmstripVisible,
_resizableFilmstrip,
@@ -381,7 +388,8 @@ class Filmstrip extends PureComponent <IProps, IState> {
let toolbar = null;
if (!this.props._iAmRecorder && this.props._isFilmstripButtonEnabled
- && _currentLayout !== LAYOUTS.TILE_VIEW && (filmstripType === FILMSTRIP_TYPE.MAIN
+ && _currentLayout !== LAYOUTS.TILE_VIEW
+ && ((filmstripType === FILMSTRIP_TYPE.MAIN && !_filmstripDisabled)
|| (filmstripType === FILMSTRIP_TYPE.STAGE && _topPanelFilmstrip))) {
toolbar = this._renderToggleButton();
}
@@ -885,6 +893,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
const { isOpen: shiftRight } = state['features/chat'];
const disableSelfView = getHideSelfView(state);
const { clientWidth, clientHeight } = state['features/base/responsive-ui'];
+ const filmstripDisabled = isFilmstripDisabled(state);
const collapseTileView = reduceHeight
&& isMobileBrowser()
@@ -893,7 +902,8 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
const shouldReduceHeight = reduceHeight && isMobileBrowser();
const _topPanelVisible = isStageFilmstripTopPanel(state) && topPanelVisible;
- let isVisible = visible || filmstripType !== FILMSTRIP_TYPE.MAIN;
+ const notDisabled = visible && !filmstripDisabled;
+ let isVisible = notDisabled || filmstripType !== FILMSTRIP_TYPE.MAIN;
if (_topPanelFilmstrip) {
isVisible = _topPanelVisible;
@@ -912,13 +922,14 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
_chatOpen: state['features/chat'].isOpen,
_currentLayout,
_disableSelfView: disableSelfView,
+ _filmstripDisabled: filmstripDisabled,
_hasScroll,
_iAmRecorder: Boolean(iAmRecorder),
_isFilmstripButtonEnabled: isButtonEnabled('filmstrip', state),
_isToolboxVisible: isToolboxVisible(state),
_isVerticalFilmstrip,
_localScreenShareId: localScreenShare?.id,
- _mainFilmstripVisible: visible,
+ _mainFilmstripVisible: notDisabled,
_maxFilmstripWidth: clientWidth - MIN_STAGE_VIEW_WIDTH,
_maxTopPanelHeight: clientHeight - MIN_STAGE_VIEW_HEIGHT,
_remoteParticipantsLength: _remoteParticipants?.length ?? 0,