bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/component.jsx

651 lines
20 KiB
React
Raw Normal View History

2021-05-28 02:12:49 +08:00
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { throttle } from '/imports/utils/throttle';
import { defineMessages, injectIntl } from 'react-intl';
import ReactModal from 'react-modal';
import browserInfo from '/imports/utils/browserInfo';
2021-04-01 01:13:36 +08:00
import deviceInfo from '/imports/utils/deviceInfo';
2018-10-12 23:05:53 +08:00
import PollingContainer from '/imports/ui/components/polling/container';
import logger from '/imports/startup/client/logger';
2019-02-27 01:40:01 +08:00
import ActivityCheckContainer from '/imports/ui/components/activity-check/container';
2022-02-16 01:57:50 +08:00
import ToastContainer from '/imports/ui/components/common/toast/container';
import PadsSessionsContainer from '/imports/ui/components/pads/pads-graphql/sessions/component';
2023-07-31 22:24:25 +08:00
import WakeLockContainer from '../wake-lock/container';
import NotificationsBarContainer from '../notifications-bar/container';
2017-03-28 04:40:44 +08:00
import AudioContainer from '../audio/container';
2019-03-16 04:07:14 +08:00
import BannerBarContainer from '/imports/ui/components/banner-bar/container';
import RaiseHandNotifier from '/imports/ui/components/raisehand-notifier/container';
import ManyWebcamsNotifier from '/imports/ui/components/video-provider/video-provider-graphql/many-users-notify/container';
2024-04-17 06:39:29 +08:00
import AudioCaptionsSpeechContainer from '/imports/ui/components/audio/audio-graphql/audio-captions/speech/component';
2020-02-26 03:29:14 +08:00
import UploaderContainer from '/imports/ui/components/presentation/presentation-uploader/container';
import ScreenReaderAlertContainer from '../screenreader-alert/container';
import ScreenReaderAlertAdapter from '../screenreader-alert/adapter';
2023-05-12 04:20:26 +08:00
import WebcamContainer from '../webcam/container';
2023-10-12 20:32:24 +08:00
import PresentationContainer from '../presentation/container';
import ScreenshareContainer from '../screenshare/container';
import ExternalVideoPlayerContainer from '../external-video-player/external-video-player-graphql/component';
import GenericComponentContainer from '../generic-component-content/container';
import EmojiRainContainer from '../emoji-rain/container';
2021-10-28 00:43:51 +08:00
import Styled from './styles';
import { DEVICE_TYPE, ACTIONS, SMALL_VIEWPORT_BREAKPOINT, PANELS } from '../layout/enums';
2021-05-18 04:25:07 +08:00
import {
isMobile, isTablet, isTabletPortrait, isTabletLandscape, isDesktop,
} from '../layout/utils';
2021-09-24 04:46:50 +08:00
import LayoutEngine from '../layout/layout-manager/layoutEngine';
2021-05-18 04:25:07 +08:00
import NavBarContainer from '../nav-bar/container';
import SidebarNavigationContainer from '../sidebar-navigation/container';
import SidebarContentContainer from '../sidebar-content/container';
import PluginsEngineManager from '../plugins-engine/manager';
import { getSettingsSingletonInstance } from '/imports/ui/services/settings';
2021-09-05 06:36:48 +08:00
import { registerTitleView } from '/imports/utils/dom-utils';
import Notifications from '../notifications/component';
2021-11-06 03:59:01 +08:00
import GlobalStyles from '/imports/ui/stylesheets/styled-components/globalStyles';
import ActionsBarContainer from '../actions-bar/container';
2022-09-03 02:18:17 +08:00
import PushLayoutEngine from '../layout/push-layout/pushLayoutEngine';
import AudioService from '/imports/ui/components/audio/service';
import NotesContainer from '/imports/ui/components/notes/component';
import AppService from '/imports/ui/components/app/service';
import TimeSync from './app-graphql/time-sync/component';
import PresentationUploaderToastContainer from '/imports/ui/components/presentation/presentation-toast/presentation-uploader-toast/container';
2023-12-12 00:21:00 +08:00
import BreakoutJoinConfirmationContainerGraphQL from '../breakout-join-confirmation/breakout-join-confirmation-graphql/component';
import FloatingWindowContainer from '/imports/ui/components/floating-window/container';
2024-02-24 02:14:12 +08:00
import ChatAlertContainerGraphql from '../chat/chat-graphql/alert/component';
// [move settings]
const MOBILE_MEDIA = 'only screen and (max-width: 40em)';
const intlMessages = defineMessages({
userListLabel: {
2017-09-23 01:51:47 +08:00
id: 'app.userList.label',
2017-04-10 23:50:03 +08:00
description: 'Aria-label for Userlist Nav',
},
chatLabel: {
2017-09-23 01:23:25 +08:00
id: 'app.chat.label',
2017-04-19 03:42:55 +08:00
description: 'Aria-label for Chat Section',
},
2017-08-11 00:05:51 +08:00
actionsBarLabel: {
id: 'app.actionsBar.label',
2017-04-19 03:42:55 +08:00
description: 'Aria-label for ActionsBar Section',
},
clearedEmoji: {
id: 'app.toast.clearedEmoji.label',
2019-06-01 02:48:41 +08:00
description: 'message for cleared emoji status',
},
clearedReaction: {
id: 'app.toast.clearedReactions.label',
description: 'message for cleared reactions',
},
setEmoji: {
id: 'app.toast.setEmoji.label',
2019-06-01 02:48:41 +08:00
description: 'message when a user emoji has been set',
},
raisedHand: {
id: 'app.toast.setEmoji.raiseHand',
description: 'toast message for raised hand notification',
},
loweredHand: {
id: 'app.toast.setEmoji.lowerHand',
description: 'toast message for lowered hand notification',
},
away: {
id: 'app.toast.setEmoji.away',
description: 'toast message for set away notification',
},
notAway: {
id: 'app.toast.setEmoji.notAway',
description: 'toast message for remove away notification',
},
meetingMuteOn: {
id: 'app.toast.meetingMuteOn.label',
2019-06-01 02:48:41 +08:00
description: 'message used when meeting has been muted',
},
meetingMuteOff: {
id: 'app.toast.meetingMuteOff.label',
2019-06-01 02:48:41 +08:00
description: 'message used when meeting has been unmuted',
},
pollPublishedLabel: {
id: 'app.whiteboard.annotations.poll',
description: 'message displayed when a poll is published',
},
2021-09-05 06:36:48 +08:00
defaultViewLabel: {
id: 'app.title.defaultViewLabel',
description: 'view name appended to document title',
2021-09-05 06:36:48 +08:00
},
2022-01-11 13:02:24 +08:00
promotedLabel: {
id: 'app.toast.promotedLabel',
description: 'notification message when promoted',
},
demotedLabel: {
id: 'app.toast.demotedLabel',
description: 'notification message when demoted',
},
});
2016-04-29 03:02:51 +08:00
const propTypes = {
2022-04-09 03:05:29 +08:00
darkTheme: PropTypes.bool.isRequired,
};
2022-03-04 04:48:56 +08:00
const isLayeredView = window.matchMedia(`(max-width: ${SMALL_VIEWPORT_BREAKPOINT}px)`);
class App extends Component {
2021-05-18 04:25:07 +08:00
constructor(props) {
super(props);
2016-09-15 01:48:50 +08:00
this.state = {
enableResize: !window.matchMedia(MOBILE_MEDIA).matches,
isAudioModalOpen: false,
isVideoPreviewModalOpen: false,
2023-08-30 04:00:32 +08:00
presentationFitToWidth: false,
2016-09-15 01:48:50 +08:00
};
2020-06-13 02:50:42 +08:00
this.timeOffsetInterval = null;
2020-04-27 04:18:43 +08:00
2023-08-30 04:00:32 +08:00
this.setPresentationFitToWidth = this.setPresentationFitToWidth.bind(this);
this.handleWindowResize = throttle(this.handleWindowResize).bind(this);
this.shouldAriaHide = this.shouldAriaHide.bind(this);
this.setAudioModalIsOpen = this.setAudioModalIsOpen.bind(this);
2024-03-13 07:01:12 +08:00
this.setVideoPreviewModalIsOpen = this.setVideoPreviewModalIsOpen.bind(this);
2021-05-18 04:25:07 +08:00
this.throttledDeviceType = throttle(() => this.setDeviceType(),
50, { trailing: true, leading: true }).bind(this);
}
componentDidMount() {
const {
2021-05-18 04:25:07 +08:00
intl,
2021-08-05 19:03:24 +08:00
layoutContextDispatch,
2021-07-26 22:03:31 +08:00
isRTL,
2024-06-07 02:47:41 +08:00
muteMicrophone,
} = this.props;
const { browserName } = browserInfo;
2021-05-18 04:25:07 +08:00
const { osName } = deviceInfo;
2017-07-04 22:32:22 +08:00
2021-09-05 06:36:48 +08:00
registerTitleView(intl.formatMessage(intlMessages.defaultViewLabel));
2021-08-05 19:03:24 +08:00
layoutContextDispatch({
2021-07-26 22:03:31 +08:00
type: ACTIONS.SET_IS_RTL,
value: isRTL,
});
ReactModal.setAppElement('#app');
const APP_CONFIG = window.meetingClientSettings.public.app;
const DESKTOP_FONT_SIZE = APP_CONFIG.desktopFontSize;
const MOBILE_FONT_SIZE = APP_CONFIG.mobileFontSize;
const CONFIRMATION_ON_LEAVE = window.meetingClientSettings.public.app.askForConfirmationOnLeave;
const Settings = getSettingsSingletonInstance();
2021-06-19 02:32:46 +08:00
const fontSize = isMobile() ? MOBILE_FONT_SIZE : DESKTOP_FONT_SIZE;
document.getElementsByTagName('html')[0].style.fontSize = fontSize;
2021-08-05 19:03:24 +08:00
layoutContextDispatch({
2021-06-19 02:32:46 +08:00
type: ACTIONS.SET_FONT_SIZE,
2021-08-05 12:22:07 +08:00
value: parseInt(fontSize.slice(0, -2), 10),
2021-06-19 02:32:46 +08:00
});
const body = document.getElementsByTagName('body')[0];
if (browserName) {
body.classList.add(`browser-${browserName.split(' ').pop()
.toLowerCase()}`);
}
2021-04-01 01:13:36 +08:00
body.classList.add(`os-${osName.split(' ').shift().toLowerCase()}`);
this.handleWindowResize();
window.addEventListener('resize', this.handleWindowResize, false);
2021-08-09 22:06:33 +08:00
window.addEventListener('localeChanged', () => {
2021-08-09 21:09:00 +08:00
layoutContextDispatch({
type: ACTIONS.SET_IS_RTL,
2021-08-09 22:06:33 +08:00
value: Settings.application.isRTL,
2021-08-09 21:09:00 +08:00
});
});
2021-05-18 04:25:07 +08:00
window.ondragover = (e) => { e.preventDefault(); };
window.ondrop = (e) => { e.preventDefault(); };
if (CONFIRMATION_ON_LEAVE) {
window.onbeforeunload = (event) => {
if (AudioService.isUsingAudio() && !AudioService.isMuted()) {
2024-06-07 02:47:41 +08:00
muteMicrophone();
}
event.stopImmediatePropagation();
event.preventDefault();
// eslint-disable-next-line no-param-reassign
event.returnValue = '';
};
}
logger.info({ logCode: 'app_component_componentdidmount' }, 'Client loaded successfully');
}
componentDidUpdate(prevProps) {
const {
notify,
currentUserEmoji,
currentUserAway,
currentUserRaiseHand,
intl,
2021-05-18 04:25:07 +08:00
deviceType,
selectedLayout,
sidebarContentIsOpen,
layoutContextDispatch,
numCameras,
presentationIsOpen,
hideActionsBar,
hideNavBar,
} = this.props;
2022-04-09 03:05:29 +08:00
this.renderDarkMode();
if (prevProps.currentUserEmoji.status !== currentUserEmoji.status
&& currentUserEmoji.status !== 'raiseHand'
&& currentUserEmoji.status !== 'away'
) {
2019-06-01 02:36:52 +08:00
const formattedEmojiStatus = intl.formatMessage({ id: `app.actionsBar.emojiMenu.${currentUserEmoji.status}Label` })
2021-05-18 04:25:07 +08:00
|| currentUserEmoji.status;
if (currentUserEmoji.status === 'none') {
notify(
intl.formatMessage(intlMessages.clearedEmoji),
'info',
'clear_status',
);
} else {
notify(
intl.formatMessage(intlMessages.setEmoji, ({ 0: formattedEmojiStatus })),
'info',
'user',
);
}
}
if (prevProps.currentUserAway !== currentUserAway) {
if (currentUserAway === true) {
notify(intl.formatMessage(intlMessages.away), 'info', 'user');
} else {
notify(intl.formatMessage(intlMessages.notAway), 'info', 'clear_status');
}
}
if (prevProps.currentUserRaiseHand !== currentUserRaiseHand) {
if (currentUserRaiseHand === true) {
notify(intl.formatMessage(intlMessages.raisedHand), 'info', 'user');
} else {
notify(intl.formatMessage(intlMessages.loweredHand), 'info', 'clear_status');
}
}
2021-05-18 04:25:07 +08:00
if (deviceType === null || prevProps.deviceType !== deviceType) this.throttledDeviceType();
const CHAT_CONFIG = window.meetingClientSettings.public.chat;
2024-05-30 20:57:01 +08:00
const PUBLIC_CHAT_ID = CHAT_CONFIG.public_group_id;
if (
selectedLayout !== prevProps.selectedLayout
&& selectedLayout?.toLowerCase?.()?.includes?.('focus')
&& !sidebarContentIsOpen
&& deviceType !== DEVICE_TYPE.MOBILE
&& numCameras > 0
&& presentationIsOpen
) {
setTimeout(() => {
layoutContextDispatch({
type: ACTIONS.SET_SIDEBAR_CONTENT_IS_OPEN,
value: true,
});
layoutContextDispatch({
type: ACTIONS.SET_ID_CHAT_OPEN,
value: PUBLIC_CHAT_ID,
});
layoutContextDispatch({
type: ACTIONS.SET_SIDEBAR_CONTENT_PANEL,
value: PANELS.CHAT,
});
}, 0);
}
layoutContextDispatch({
type: ACTIONS.SET_HAS_ACTIONBAR,
value: !hideActionsBar,
});
layoutContextDispatch({
type: ACTIONS.SET_HAS_NAVBAR,
value: !hideNavBar,
});
}
componentWillUnmount() {
window.removeEventListener('resize', this.handleWindowResize, false);
window.onbeforeunload = null;
2020-06-13 02:50:42 +08:00
if (this.timeOffsetInterval) {
clearInterval(this.timeOffsetInterval);
}
}
2023-08-30 04:00:32 +08:00
setPresentationFitToWidth(presentationFitToWidth) {
this.setState({ presentationFitToWidth });
}
handleWindowResize() {
const { enableResize } = this.state;
const shouldEnableResize = !window.matchMedia(MOBILE_MEDIA).matches;
if (enableResize === shouldEnableResize) return;
this.setState({ enableResize: shouldEnableResize });
2021-05-18 04:25:07 +08:00
this.throttledDeviceType();
}
setDeviceType() {
2021-08-05 19:03:24 +08:00
const { deviceType, layoutContextDispatch } = this.props;
2021-05-18 04:25:07 +08:00
let newDeviceType = null;
if (isMobile()) newDeviceType = DEVICE_TYPE.MOBILE;
if (isTablet()) newDeviceType = DEVICE_TYPE.TABLET;
if (isTabletPortrait()) newDeviceType = DEVICE_TYPE.TABLET_PORTRAIT;
if (isTabletLandscape()) newDeviceType = DEVICE_TYPE.TABLET_LANDSCAPE;
if (isDesktop()) newDeviceType = DEVICE_TYPE.DESKTOP;
if (newDeviceType !== deviceType) {
2021-08-05 19:03:24 +08:00
layoutContextDispatch({
2021-05-18 04:25:07 +08:00
type: ACTIONS.SET_DEVICE_TYPE,
value: newDeviceType,
});
}
2016-09-15 01:48:50 +08:00
}
shouldAriaHide() {
2021-05-18 04:25:07 +08:00
const { sidebarNavigationIsOpen, sidebarContentIsOpen, isPhone } = this.props;
return sidebarNavigationIsOpen
&& sidebarContentIsOpen
&& (isPhone || isLayeredView.matches);
2019-03-12 08:34:34 +08:00
}
renderAudioCaptions() {
const {
audioCaptions,
captionsStyle,
} = this.props;
if (!audioCaptions) return null;
return (
<Styled.CaptionsWrapper
role="region"
style={
{
position: 'absolute',
left: captionsStyle.left,
right: captionsStyle.right,
maxWidth: captionsStyle.maxWidth,
}
}
>
{audioCaptions}
</Styled.CaptionsWrapper>
);
}
renderActionsBar() {
const {
intl,
2021-06-01 04:28:57 +08:00
actionsBarStyle,
hideActionsBar,
setPushLayout,
setMeetingLayout,
presentationIsOpen,
selectedLayout,
} = this.props;
2016-04-29 03:02:51 +08:00
const LAYOUT_CONFIG = window.meetingClientSettings.public.layout;
const { showPushLayoutButton } = LAYOUT_CONFIG;
if (hideActionsBar) return null;
2016-04-29 03:02:51 +08:00
2016-05-12 04:43:07 +08:00
return (
2021-10-28 00:43:51 +08:00
<Styled.ActionsBar
2022-04-09 03:05:29 +08:00
id="ActionsBar"
role="region"
2017-08-11 00:05:51 +08:00
aria-label={intl.formatMessage(intlMessages.actionsBarLabel)}
aria-hidden={this.shouldAriaHide()}
2021-06-01 04:28:57 +08:00
style={
2021-08-05 12:22:07 +08:00
{
position: 'absolute',
top: actionsBarStyle.top,
left: actionsBarStyle.left,
height: actionsBarStyle.height,
width: actionsBarStyle.width,
padding: actionsBarStyle.padding,
}
2021-06-01 04:28:57 +08:00
}
2017-06-03 03:25:02 +08:00
>
<ActionsBarContainer
setPushLayout={setPushLayout}
setMeetingLayout={setMeetingLayout}
showPushLayout={showPushLayoutButton && selectedLayout === 'custom'}
presentationIsOpen={presentationIsOpen}
setPresentationFitToWidth={this.setPresentationFitToWidth}
/>
2021-10-28 00:43:51 +08:00
</Styled.ActionsBar>
2016-05-12 04:43:07 +08:00
);
}
2019-02-27 01:40:01 +08:00
renderActivityCheck() {
const { inactivityWarningDisplay, inactivityWarningTimeoutSecs } = this.props;
2019-02-27 01:40:01 +08:00
2024-03-22 04:36:18 +08:00
return (inactivityWarningDisplay ? (
2019-02-27 01:40:01 +08:00
<ActivityCheckContainer
2024-03-22 04:36:18 +08:00
inactivityCheck={inactivityWarningDisplay}
responseDelay={inactivityWarningTimeoutSecs}
2021-05-03 02:20:49 +08:00
/>
) : null);
2019-02-27 01:40:01 +08:00
}
2022-04-09 03:05:29 +08:00
renderDarkMode() {
const { darkTheme } = this.props;
AppService.setDarkTheme(darkTheme);
2022-04-09 03:05:29 +08:00
}
2022-09-03 02:18:17 +08:00
mountPushLayoutEngine() {
const {
cameraWidth,
cameraHeight,
cameraIsResizing,
cameraPosition,
focusedCamera,
horizontalPosition,
isMeetingLayoutResizing,
2022-09-03 02:18:17 +08:00
isPresenter,
isModerator,
layoutContextDispatch,
meetingLayout,
meetingLayoutCameraPosition,
meetingLayoutFocusedCamera,
meetingLayoutVideoRate,
meetingPresentationIsOpen,
meetingLayoutUpdatedAt,
presentationIsOpen,
presentationVideoRate,
pushLayout,
pushLayoutMeeting,
selectedLayout,
setMeetingLayout,
setPushLayout,
2022-09-03 02:18:17 +08:00
shouldShowScreenshare,
shouldShowExternalVideo,
enforceLayout,
2024-01-30 21:03:11 +08:00
setLocalSettings,
2022-09-03 02:18:17 +08:00
} = this.props;
return (
<PushLayoutEngine
{...{
cameraWidth,
cameraHeight,
cameraIsResizing,
cameraPosition,
focusedCamera,
horizontalPosition,
isMeetingLayoutResizing,
2022-09-03 02:18:17 +08:00
isPresenter,
isModerator,
layoutContextDispatch,
meetingLayout,
meetingLayoutCameraPosition,
meetingLayoutFocusedCamera,
meetingLayoutVideoRate,
meetingPresentationIsOpen,
meetingLayoutUpdatedAt,
presentationIsOpen,
presentationVideoRate,
pushLayout,
pushLayoutMeeting,
selectedLayout,
setMeetingLayout,
setPushLayout,
2022-09-03 02:18:17 +08:00
shouldShowScreenshare,
shouldShowExternalVideo: !!shouldShowExternalVideo,
enforceLayout,
2024-01-30 21:03:11 +08:00
setLocalSettings,
2022-09-03 02:18:17 +08:00
}}
/>
);
}
setAudioModalIsOpen(value) {
this.setState({isAudioModalOpen: value});
}
setVideoPreviewModalIsOpen(value) {
this.setState({isVideoPreviewModalOpen: value});
}
setRandomUserSelectModalIsOpen(value) {
const {setMountRandomUserModal} = this.props;
this.setState({isRandomUserSelectModalOpen: value});
setMountRandomUserModal(false);
}
render() {
const {
2021-05-18 04:25:07 +08:00
customStyle,
customStyleUrl,
2021-05-28 01:46:27 +08:00
audioAlertEnabled,
2021-05-28 02:12:49 +08:00
pushAlertEnabled,
shouldShowPresentation,
shouldShowScreenshare,
isSharedNotesPinned,
2021-06-16 20:53:27 +08:00
isPresenter,
selectedLayout,
presentationIsOpen,
darkTheme,
intl,
genericComponentId,
2024-04-17 06:39:29 +08:00
speechLocale,
connected,
} = this.props;
const {
isAudioModalOpen,
isVideoPreviewModalOpen,
2023-08-17 03:24:34 +08:00
presentationFitToWidth,
} = this.state;
2016-04-29 03:02:51 +08:00
return (
2021-05-18 04:25:07 +08:00
<>
<ScreenReaderAlertAdapter />
<PluginsEngineManager />
<FloatingWindowContainer />
<TimeSync />
2022-03-11 03:33:25 +08:00
<Notifications />
2022-09-03 02:18:17 +08:00
{this.mountPushLayoutEngine()}
{selectedLayout ? <LayoutEngine layoutType={selectedLayout} /> : null}
2021-11-06 03:59:01 +08:00
<GlobalStyles />
2021-10-28 00:43:51 +08:00
<Styled.Layout
2021-08-05 19:03:24 +08:00
id="layout"
2021-08-05 12:22:07 +08:00
style={{
width: '100%',
height: '100%',
}}
>
{this.renderActivityCheck()}
<ScreenReaderAlertContainer />
2021-08-05 12:22:07 +08:00
<BannerBarContainer />
<NotificationsBarContainer connected={connected} />
2021-08-05 12:22:07 +08:00
<SidebarNavigationContainer />
<SidebarContentContainer isSharedNotesPinned={isSharedNotesPinned} />
2021-08-05 12:22:07 +08:00
<NavBarContainer main="new" />
2023-05-12 04:20:26 +08:00
<WebcamContainer isLayoutSwapped={!presentationIsOpen} layoutType={selectedLayout} />
2023-12-13 04:47:29 +08:00
<ExternalVideoPlayerContainer />
<GenericComponentContainer
genericComponentId={genericComponentId}
/>
{
shouldShowPresentation
? (
<PresentationContainer
setPresentationFitToWidth={this.setPresentationFitToWidth}
fitToWidth={presentationFitToWidth}
darkTheme={darkTheme}
presentationIsOpen={presentationIsOpen}
layoutType={selectedLayout}
/>
)
: null
}
2021-08-05 12:22:07 +08:00
{
shouldShowScreenshare
? (
<ScreenshareContainer
isLayoutSwapped={!presentationIsOpen}
isPresenter={isPresenter}
/>
)
: null
2021-08-05 12:22:07 +08:00
}
{isSharedNotesPinned
? (
<NotesContainer
area="media"
/>
) : null}
<AudioCaptionsSpeechContainer />
{this.renderAudioCaptions()}
<PresentationUploaderToastContainer intl={intl} />
2021-08-05 12:22:07 +08:00
<UploaderContainer />
2023-12-12 00:21:00 +08:00
<BreakoutJoinConfirmationContainerGraphQL />
<AudioContainer {...{
isAudioModalOpen,
setAudioModalIsOpen: this.setAudioModalIsOpen,
isVideoPreviewModalOpen,
setVideoPreviewModalIsOpen: this.setVideoPreviewModalIsOpen,
2024-04-17 06:39:29 +08:00
speechLocale,
}}
/>
2021-08-05 12:22:07 +08:00
<ToastContainer rtl />
{(audioAlertEnabled || pushAlertEnabled)
&& (
2024-02-24 02:14:12 +08:00
<ChatAlertContainerGraphql
2021-08-05 12:22:07 +08:00
audioAlertEnabled={audioAlertEnabled}
pushAlertEnabled={pushAlertEnabled}
/>
)}
<RaiseHandNotifier />
2021-08-05 12:22:07 +08:00
<ManyWebcamsNotifier />
<PollingContainer />
<PadsSessionsContainer />
2023-07-31 22:24:25 +08:00
<WakeLockContainer />
2021-08-05 12:22:07 +08:00
{this.renderActionsBar()}
<EmojiRainContainer />
2021-08-05 12:22:07 +08:00
{customStyleUrl ? <link rel="stylesheet" type="text/css" href={customStyleUrl} /> : null}
{customStyle ? <link rel="stylesheet" type="text/css" href={`data:text/css;charset=UTF-8,${encodeURIComponent(customStyle)}`} /> : null}
2021-10-28 00:43:51 +08:00
</Styled.Layout>
2021-05-18 04:25:07 +08:00
</>
2016-04-29 03:02:51 +08:00
);
}
}
App.propTypes = propTypes;
2022-04-09 03:05:29 +08:00
export default injectIntl(App);