mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-18 10:47:48 +00:00
fix(virtual-backgroud) Remove desktop share as virtual background.
Its no longer supported in multi-stream mode.
This commit is contained in:
@@ -100,8 +100,7 @@ import {
|
||||
// @ts-ignore
|
||||
import { VideoQualityButton, VideoQualityDialog } from '../../../video-quality/components';
|
||||
// @ts-ignore
|
||||
import { VideoBackgroundButton, toggleBackgroundEffect } from '../../../virtual-background';
|
||||
import { VIRTUAL_BACKGROUND_TYPE } from '../../../virtual-background/constants';
|
||||
import { VideoBackgroundButton } from '../../../virtual-background';
|
||||
import WhiteboardButton from '../../../whiteboard/components/web/WhiteboardButton';
|
||||
import { isWhiteboardButtonVisible } from '../../../whiteboard/functions';
|
||||
import {
|
||||
@@ -665,30 +664,12 @@ class Toolbox extends Component<Props> {
|
||||
*/
|
||||
_doToggleScreenshare() {
|
||||
const {
|
||||
_backgroundType,
|
||||
_desktopSharingButtonDisabled,
|
||||
_desktopSharingEnabled,
|
||||
_localVideo,
|
||||
_screenSharing,
|
||||
_virtualSource,
|
||||
dispatch
|
||||
} = this.props;
|
||||
|
||||
if (_backgroundType === VIRTUAL_BACKGROUND_TYPE.DESKTOP_SHARE) {
|
||||
const noneOptions = {
|
||||
enabled: false,
|
||||
backgroundType: VIRTUAL_BACKGROUND_TYPE.NONE,
|
||||
selectedThumbnail: VIRTUAL_BACKGROUND_TYPE.NONE,
|
||||
backgroundEffectEnabled: false
|
||||
};
|
||||
|
||||
_virtualSource.dispose();
|
||||
|
||||
dispatch(toggleBackgroundEffect(noneOptions, _localVideo));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (_desktopSharingEnabled && !_desktopSharingButtonDisabled) {
|
||||
dispatch(startScreenShareFlow(!_screenSharing));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user