From 21a1d52753521a8a5d0e1001f4de829fb00671c2 Mon Sep 17 00:00:00 2001 From: Alexandru Petrus Date: Fri, 9 Sep 2022 15:43:47 +0300 Subject: [PATCH] fix(large-video) disable screen-sharing placeholder on Spot Temporary hack, this should likely be configurable. --- .../large-video/components/LargeVideo.web.js | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js index cfec64fc13..38eb45c775 100644 --- a/react/features/large-video/components/LargeVideo.web.js +++ b/react/features/large-video/components/LargeVideo.web.js @@ -21,6 +21,8 @@ import { setSeeWhatIsBeingShared } from '../actions.web'; import ScreenSharePlaceholder from './ScreenSharePlaceholder.web'; +// Hack to detect Spot. +const SPOT_DISPLAY_NAME = 'Meeting Room'; declare var interfaceConfig: Object; @@ -41,6 +43,11 @@ type Props = { */ _customBackgroundImageUrl: string, + /** + * Whether the screen-sharing placeholder should be displayed or not. + */ + _displayScreenSharingPlaceholder: boolean, + /** * Prop that indicates whether the chat is open. */ @@ -156,11 +163,10 @@ class LargeVideo extends Component { */ render() { const { + _displayScreenSharingPlaceholder, _isChatOpen, _noAutoPlayVideo, - _showDominantSpeakerBadge, - _isScreenSharing, - _seeWhatIsBeingShared + _showDominantSpeakerBadge } = this.props; const style = this._getCustomStyles(); const className = `videocontainer${_isChatOpen ? ' shift-right' : ''}`; @@ -199,11 +205,11 @@ class LargeVideo extends Component { onTouchEnd = { this._onDoubleTap } ref = { this._wrapperRef } role = 'figure' > - {_isScreenSharing && !_seeWhatIsBeingShared ? :