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

This commit is contained in:
tudordan7 2021-05-14 10:10:46 +03:00 committed by Jaya Allamsetty
parent 04a464dfee
commit 72cd3d70e1
1 changed files with 7 additions and 1 deletions

View File

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