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(shared-video) use more space on recorders

Saúl Ibarra Corretgé15cc956ed4f5
diff --git a/react/features/shared-video/components/web/SharedVideo.js b/react/features/shared-video/components/web/SharedVideo.js
index 6f3dcfdc87..cdc1efc58a 100644
--- a/react/features/shared-video/components/web/SharedVideo.js
+++ b/react/features/shared-video/components/web/SharedVideo.js
@@ -31,15 +31,13 @@ type Props = {
/**
* Is the video shared by the local user.
- *
- * @private
*/
- isOwner: boolean,
+ isOwner: boolean,
/**
* The shared video url.
*/
- videoUrl: string,
+ videoUrl: string,
}
/** .
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index b7265ab4fc..2be6e0174c 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -144,6 +144,11 @@ type Props = {
*/
_dialog: boolean,
+ /**
+ * Whether or not the toolbox is disabled. It is for recorders.
+ */
+ _disabled: boolean,
+
/**
* Whether or not call feedback can be sent.
*/
@@ -447,6 +452,10 @@ class Toolbox extends Component<Props> {
* @returns {ReactElement}
*/
render() {
+ if (this.props._disabled) {
+ return null;
+ }
+
const { _chatOpen, _visible, _toolbarButtons } = this.props;
const rootClassNames = `new-toolbox ${_visible ? 'visible' : ''} ${
_toolbarButtons.length ? '' : 'no-buttons'} ${_chatOpen ? 'shift-right' : ''}`;
@@ -1346,11 +1355,13 @@ function _mapStateToProps(state, ownProps) {
const { conference } = state['features/base/conference'];
let desktopSharingEnabled = JitsiMeetJS.isDesktopSharingEnabled();
const {
+ buttonsWithNotifyClick,
callStatsID,
disableProfile,
enableFeaturesBasedOnToken,
hideDominantSpeakerBadge,
- buttonsWithNotifyClick
+ iAmRecorder,
+ iAmSipGateway
} = state['features/base/config'];
const {
fullScreen,
@@ -1391,6 +1402,7 @@ function _mapStateToProps(state, ownProps) {
_desktopSharingButtonDisabled: isDesktopShareButtonDisabled(state),
_desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey,
_dialog: Boolean(state['features/base/dialog'].component),
+ _disabled: Boolean(iAmRecorder || iAmSipGateway),
_feedbackConfigured: Boolean(callStatsID),
_fullScreen: fullScreen,
_isProfileDisabled: Boolean(disableProfile),