Skip to content

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

feat(virtual-background): Desktop share as virtual background wip

tudordan772cd3d70e1c0
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 02d79d62c8..38e9bdb5b7 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -101,6 +101,11 @@ import VideoSettingsButton from './VideoSettingsButton';
*/
type Props = {
+ /**
+ * String showing if the virtual background type is desktop-share.
+ */
+ _backgroundType: String,
+
/**
* Whether or not the chat feature is currently displayed.
*/
@@ -891,7 +896,7 @@ class Toolbox extends Component<Props> {
* @returns {void}
*/
_onToolbarToggleScreenshare() {
- if (!this.props._desktopSharingEnabled) {
+ if (!this.props._desktopSharingEnabled || this.props._backgroundType === 'desktop-share') {
return;
}
@@ -1371,6 +1376,7 @@ function _mapStateToProps(state) {
_clientWidth: clientWidth,
_conference: conference,
_desktopSharingEnabled: desktopSharingEnabled,
+ _backgroundType: state['features/virtual-background'].backgroundType,
_desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey,
_dialog: Boolean(state['features/base/dialog'].component),
_feedbackConfigured: Boolean(callStatsID),