mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-22 17:27:48 +00:00
feat(whiteboard) add initial implementation (#12185)
This commit is contained in:
@@ -102,6 +102,8 @@ import { VideoQualityButton, VideoQualityDialog } from '../../../video-quality/c
|
||||
// @ts-ignore
|
||||
import { VideoBackgroundButton, toggleBackgroundEffect } from '../../../virtual-background';
|
||||
import { VIRTUAL_BACKGROUND_TYPE } from '../../../virtual-background/constants';
|
||||
import WhiteboardButton from '../../../whiteboard/components/web/WhiteboardButton';
|
||||
import { isWhiteboardEnabled } from '../../../whiteboard/functions';
|
||||
import {
|
||||
setFullScreen,
|
||||
setHangupMenuVisible,
|
||||
@@ -319,6 +321,11 @@ interface Props extends WithTranslation {
|
||||
*/
|
||||
_visible: boolean;
|
||||
|
||||
/**
|
||||
* Whether the whiteboard is visible.
|
||||
*/
|
||||
_whiteboardEnabled: boolean;
|
||||
|
||||
/**
|
||||
* An object containing the CSS classes.
|
||||
*/
|
||||
@@ -714,7 +721,8 @@ class Toolbox extends Component<Props> {
|
||||
_isMobile,
|
||||
_hasSalesforce,
|
||||
_multiStreamModeEnabled,
|
||||
_screenSharing
|
||||
_screenSharing,
|
||||
_whiteboardEnabled
|
||||
} = this.props;
|
||||
|
||||
const microphone = {
|
||||
@@ -845,6 +853,12 @@ class Toolbox extends Component<Props> {
|
||||
};
|
||||
|
||||
|
||||
const whiteboard = _whiteboardEnabled && {
|
||||
key: 'whiteboard',
|
||||
Content: WhiteboardButton,
|
||||
group: 3
|
||||
};
|
||||
|
||||
const etherpad = {
|
||||
key: 'etherpad',
|
||||
Content: SharedDocumentButton,
|
||||
@@ -932,6 +946,7 @@ class Toolbox extends Component<Props> {
|
||||
shareVideo,
|
||||
shareAudio,
|
||||
noiseSuppression,
|
||||
whiteboard,
|
||||
etherpad,
|
||||
virtualBackground,
|
||||
dockIframe,
|
||||
@@ -1533,7 +1548,8 @@ function _mapStateToProps(state: IState, ownProps: Partial<Props>) {
|
||||
_tileViewEnabled: shouldDisplayTileView(state),
|
||||
_toolbarButtons: toolbarButtons,
|
||||
_virtualSource: state['features/virtual-background'].virtualSource,
|
||||
_visible: isToolboxVisible(state)
|
||||
_visible: isToolboxVisible(state),
|
||||
_whiteboardEnabled: isWhiteboardEnabled(state)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user