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

658 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 'lodash';
import { defineMessages, injectIntl } from 'react-intl';
import Modal 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';
import UserInfoContainer from '/imports/ui/components/user-info/container';
import BreakoutRoomInvitation from '/imports/ui/components/breakout-room/invitation/container';
2021-05-18 04:25:07 +08:00
import { Meteor } from 'meteor/meteor';
2022-02-16 01:57:50 +08:00
import ToastContainer from '/imports/ui/components/common/toast/container';
import PadsSessionsContainer from '/imports/ui/components/pads/sessions/container';
2022-02-15 23:54:55 +08:00
import ModalContainer from '/imports/ui/components/common/modal/container';
import NotificationsBarContainer from '../notifications-bar/container';
2017-03-28 04:40:44 +08:00
import AudioContainer from '../audio/container';
import ChatAlertContainer from '../chat/alert/container';
2019-03-16 04:07:14 +08:00
import BannerBarContainer from '/imports/ui/components/banner-bar/container';
2020-06-30 10:43:20 +08:00
import StatusNotifier from '/imports/ui/components/status-notifier/container';
2019-06-13 02:03:23 +08:00
import ManyWebcamsNotifier from '/imports/ui/components/video-provider/many-users-notify/container';
2020-02-26 03:29:14 +08:00
import UploaderContainer from '/imports/ui/components/presentation/presentation-uploader/container';
import CaptionsSpeechContainer from '/imports/ui/components/captions/speech/container';
2022-02-15 23:54:55 +08:00
import RandomUserSelectContainer from '/imports/ui/components/common/modal/random-user/container';
import ScreenReaderAlertContainer from '../screenreader-alert/container';
import NewWebcamContainer from '../webcam/container';
2021-06-09 21:49:59 +08:00
import PresentationAreaContainer from '../presentation/presentation-area/container';
import ScreenshareContainer from '../screenshare/container';
2021-06-16 20:53:27 +08:00
import ExternalVideoContainer from '../external-video-player/container';
2021-10-28 00:43:51 +08:00
import Styled from './styles';
import { LAYOUT_TYPE, DEVICE_TYPE, ACTIONS, SMALL_VIEWPORT_BREAKPOINT } 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';
import getFromUserSettings from '/imports/ui/services/users-settings';
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';
2019-11-20 01:49:18 +08:00
import { makeCall } from '/imports/ui/services/api';
import ConnectionStatusService from '/imports/ui/components/connection-status/service';
2022-04-09 03:05:29 +08:00
import DarkReader from 'darkreader';
2021-06-22 04:28:51 +08:00
import Settings from '/imports/ui/services/settings';
2021-09-05 06:36:48 +08:00
import { registerTitleView } from '/imports/utils/dom-utils';
2022-03-11 03:33:25 +08:00
import Notifications from '../notifications/container';
2021-11-06 03:59:01 +08:00
import GlobalStyles from '/imports/ui/stylesheets/styled-components/globalStyles';
import MediaService from '/imports/ui/components/media/service';
import ActionsBarContainer from '../actions-bar/container';
const MOBILE_MEDIA = 'only screen and (max-width: 40em)';
const APP_CONFIG = Meteor.settings.public.app;
2019-01-04 01:55:10 +08:00
const DESKTOP_FONT_SIZE = APP_CONFIG.desktopFontSize;
const MOBILE_FONT_SIZE = APP_CONFIG.mobileFontSize;
const OVERRIDE_LOCALE = APP_CONFIG.defaultSettings.application.overrideLocale;
const HIDE_PRESENTATION = Meteor.settings.public.layout.hidePresentation;
const LAYOUT_CONFIG = Meteor.settings.public.layout;
const equalDouble = (n1, n2) => {
const precision = 0.01;
return Math.abs(n1 - n2) <= precision;
};
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',
},
iOSWarning: {
id: 'app.iOSWarning.label',
description: 'message indicating to upgrade ios version',
},
clearedEmoji: {
id: 'app.toast.clearedEmoji.label',
2019-06-01 02:48:41 +08:00
description: 'message for cleared emoji status',
},
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',
},
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 apended to document title',
},
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 = {
actionsbar: PropTypes.element,
captions: PropTypes.element,
locale: PropTypes.string,
2022-04-09 03:05:29 +08:00
darkTheme: PropTypes.bool.isRequired,
};
const defaultProps = {
actionsbar: null,
captions: null,
locale: OVERRIDE_LOCALE || navigator.language,
2016-04-29 03:02:51 +08:00
};
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,
2016-09-15 01:48:50 +08:00
};
this.handleWindowResize = throttle(this.handleWindowResize).bind(this);
this.shouldAriaHide = this.shouldAriaHide.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
locale,
notify,
intl,
validIOSVersion,
2021-08-05 19:03:24 +08:00
layoutContextDispatch,
meetingLayout,
2021-07-23 01:28:42 +08:00
settingsLayout,
cameraWidth,
cameraHeight,
layoutPresOpen,
layoutCamPosition,
layoutFocusedCam,
layoutRate,
horizontalPosition,
2021-07-26 22:03:31 +08:00
isRTL,
2022-04-08 22:45:17 +08:00
shouldShowScreenshare,
shouldShowExternalVideo,
} = 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,
});
Modal.setAppElement('#app');
2021-06-19 02:32:46 +08:00
const fontSize = isMobile() ? MOBILE_FONT_SIZE : DESKTOP_FONT_SIZE;
2017-07-04 22:32:22 +08:00
document.getElementsByTagName('html')[0].lang = locale;
2021-06-19 02:32:46 +08:00
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 userLayout = LAYOUT_TYPE[getFromUserSettings('bbb_change_layout', false)];
Settings.application.selectedLayout = settingsLayout
|| userLayout
|| meetingLayout;
let selectedLayout = Settings.application.selectedLayout;
if (isMobile()) {
selectedLayout = selectedLayout === 'custom' ? 'smart' : selectedLayout;
Settings.application.selectedLayout = selectedLayout;
}
Settings.save();
const initialPresentation = !getFromUserSettings('bbb_hide_presentation', HIDE_PRESENTATION || !layoutPresOpen) || shouldShowScreenshare || shouldShowExternalVideo;
MediaService.setPresentationIsOpen(layoutContextDispatch, initialPresentation);
if (selectedLayout === 'custom') {
setTimeout(() => {
layoutContextDispatch({
type: ACTIONS.SET_FOCUSED_CAMERA_ID,
value: layoutFocusedCam,
});
layoutContextDispatch({
type: ACTIONS.SET_CAMERA_DOCK_POSITION,
value: layoutCamPosition,
});
if (!equalDouble(layoutRate, 0)) {
let w, h;
if (horizontalPosition) {
w = window.innerWidth * layoutRate;
h = cameraHeight;
} else {
w = cameraWidth;
h = window.innerHeight * layoutRate;
}
layoutContextDispatch({
type: ACTIONS.SET_CAMERA_DOCK_SIZE,
value: {
width: w,
height: h,
browserWidth: window.innerWidth,
browserHeight: window.innerHeight,
}
});
}
}, 0);
}
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()}`);
2021-12-16 05:35:36 +08:00
body.classList.add(`lang-${locale.split('-')[0]}`);
if (!validIOSVersion()) {
notify(
intl.formatMessage(intlMessages.iOSWarning), 'error', 'warning',
);
}
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 (deviceInfo.isMobile) makeCall('setMobileUser');
2019-11-20 01:49:18 +08:00
ConnectionStatusService.startRoundTripTime();
logger.info({ logCode: 'app_component_componentdidmount' }, 'Client loaded successfully');
}
componentDidUpdate(prevProps) {
const {
notify,
currentUserEmoji,
intl,
mountModal,
2021-05-18 04:25:07 +08:00
deviceType,
meetingLayout,
meetingLayoutUpdatedAt,
presentationIsOpen,
focusedCamera,
cameraPosition,
presentationVideoRate,
cameraWidth,
cameraHeight,
cameraIsResizing,
isPresenter,
isModerator,
layoutPresOpen,
layoutIsResizing,
layoutCamPosition,
layoutFocusedCam,
layoutRate,
horizontalPosition,
selectedLayout, // layout name
pushLayout, // is layout pushed
pushLayoutMeeting,
2021-08-05 19:03:24 +08:00
layoutContextDispatch,
mountRandomUserModal,
setPushLayout,
setMeetingLayout,
} = this.props;
2022-04-09 03:05:29 +08:00
this.renderDarkMode();
if (meetingLayout !== prevProps.meetingLayout) {
2021-06-22 04:28:51 +08:00
let contextLayout = meetingLayout;
if (isMobile()) {
contextLayout = meetingLayout === 'custom' ? 'smart' : meetingLayout;
2021-06-22 04:28:51 +08:00
}
layoutContextDispatch({
type: ACTIONS.SET_LAYOUT_TYPE,
value: contextLayout,
});
Settings.application.selectedLayout = contextLayout;
Settings.save();
}
if (pushLayoutMeeting !== prevProps.pushLayoutMeeting) {
Settings.application.pushLayout = pushLayoutMeeting;
Settings.save();
}
if (meetingLayout === "custom" && !isPresenter) {
if (layoutFocusedCam !== prevProps.layoutFocusedCam
|| meetingLayoutUpdatedAt !== prevProps.meetingLayoutUpdatedAt) {
layoutContextDispatch({
type: ACTIONS.SET_FOCUSED_CAMERA_ID,
value: layoutFocusedCam,
});
}
if (layoutCamPosition !== prevProps.layoutCamPosition
|| meetingLayoutUpdatedAt !== prevProps.meetingLayoutUpdatedAt) {
layoutContextDispatch({
type: ACTIONS.SET_CAMERA_DOCK_POSITION,
value: layoutCamPosition,
});
}
if (!equalDouble(layoutRate, prevProps.layoutRate)
|| meetingLayoutUpdatedAt !== prevProps.meetingLayoutUpdatedAt) {
let w, h;
if (horizontalPosition) {
w = window.innerWidth * layoutRate;
h = cameraHeight;
} else {
w = cameraWidth;
h = window.innerHeight * layoutRate;
}
if (layoutIsResizing !== prevProps.layoutIsResizing) {
layoutContextDispatch({
type: ACTIONS.SET_CAMERA_DOCK_IS_RESIZING,
value: layoutIsResizing,
});
}
layoutContextDispatch({
type: ACTIONS.SET_CAMERA_DOCK_SIZE,
value: {
width: w,
height: h,
browserWidth: window.innerWidth,
browserHeight: window.innerHeight,
}
});
}
if (layoutPresOpen !== prevProps.layoutPresOpen
|| meetingLayoutUpdatedAt !== prevProps.meetingLayoutUpdatedAt) {
layoutContextDispatch({
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
value: layoutPresOpen,
});
}
}
const layoutChanged = presentationIsOpen !== prevProps.presentationIsOpen
|| selectedLayout !== prevProps.selectedLayout
|| cameraIsResizing !== prevProps.cameraIsResizing
|| cameraPosition !== prevProps.cameraPosition
|| focusedCamera !== prevProps.focusedCamera
|| !equalDouble(presentationVideoRate, prevProps.presentationVideoRate);
if ((pushLayout && layoutChanged) // change layout sizes / states
|| (pushLayout !== prevProps.pushLayout) // push layout once after presenter toggles / special case where we set pushLayout to false in all viewers
) {
if (isPresenter) {
setMeetingLayout();
} else if (isModerator) {
setPushLayout();
}
}
if (mountRandomUserModal) mountModal(<RandomUserSelectContainer />);
2019-06-01 02:36:52 +08:00
if (prevProps.currentUserEmoji.status !== currentUserEmoji.status) {
const formattedEmojiStatus = intl.formatMessage({ id: `app.actionsBar.emojiMenu.${currentUserEmoji.status}Label` })
2021-05-18 04:25:07 +08:00
|| currentUserEmoji.status;
const raisedHand = currentUserEmoji.status === 'raiseHand';
let statusLabel = '';
if (currentUserEmoji.status === 'none') {
statusLabel = prevProps.currentUserEmoji.status === 'raiseHand'
? intl.formatMessage(intlMessages.loweredHand)
: intl.formatMessage(intlMessages.clearedEmoji);
} else {
statusLabel = raisedHand
? intl.formatMessage(intlMessages.raisedHand)
: intl.formatMessage(intlMessages.setEmoji, ({ 0: formattedEmojiStatus }));
}
2019-06-01 02:36:52 +08:00
notify(
statusLabel,
2019-06-01 02:36:52 +08:00
'info',
currentUserEmoji.status === 'none'
? 'clear_status'
: 'user',
);
}
2021-05-18 04:25:07 +08:00
if (deviceType === null || prevProps.deviceType !== deviceType) this.throttledDeviceType();
}
componentWillUnmount() {
window.removeEventListener('resize', this.handleWindowResize, false);
ConnectionStatusService.stopRoundTripTime();
}
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
}
renderCaptions() {
const {
captions,
captionsStyle,
} = this.props;
if (!captions) return null;
return (
2021-10-28 00:43:51 +08:00
<Styled.CaptionsWrapper
role="region"
style={
{
position: 'absolute',
left: captionsStyle.left,
right: captionsStyle.right,
2021-08-17 22:20:26 +08:00
maxWidth: captionsStyle.maxWidth,
}
}
>
{captions}
2021-10-28 00:43:51 +08:00
</Styled.CaptionsWrapper>
2017-03-17 00:52:43 +08:00
);
2016-04-29 03:02:51 +08:00
}
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 { 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}
/>
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 { User } = this.props;
const { inactivityCheck, responseDelay } = User;
return (inactivityCheck ? (
<ActivityCheckContainer
inactivityCheck={inactivityCheck}
responseDelay={responseDelay}
2021-05-03 02:20:49 +08:00
/>
) : null);
2019-02-27 01:40:01 +08:00
}
renderUserInformation() {
const { UserInfo, User } = this.props;
return (UserInfo.length > 0 ? (
<UserInfoContainer
UserInfo={UserInfo}
requesterUserId={User.userId}
meetingId={User.meetingId}
2021-05-03 02:20:49 +08:00
/>
) : null);
}
2022-04-09 03:05:29 +08:00
renderDarkMode() {
const { darkTheme } = this.props;
return darkTheme
? DarkReader.enable(
{ brightness: 100, contrast: 90 },
{ invert: [Styled.DtfInvert], ignoreInlineStyle: [Styled.DtfCss] },
)
: DarkReader.disable();
}
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,
2021-06-16 20:53:27 +08:00
shouldShowExternalVideo,
isPresenter,
selectedLayout,
presentationIsOpen,
} = this.props;
2016-04-29 03:02:51 +08:00
return (
2021-05-18 04:25:07 +08:00
<>
2022-03-11 03:33:25 +08:00
<Notifications />
<LayoutEngine layoutType={selectedLayout} />
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()}
{this.renderUserInformation()}
<ScreenReaderAlertContainer />
2021-08-05 12:22:07 +08:00
<BannerBarContainer />
<NotificationsBarContainer />
<SidebarNavigationContainer />
<SidebarContentContainer />
<NavBarContainer main="new" />
<NewWebcamContainer isLayoutSwapped={!presentationIsOpen} />
{shouldShowPresentation ? <PresentationAreaContainer presentationIsOpen={presentationIsOpen} /> : null}
{shouldShowScreenshare ? <ScreenshareContainer isLayoutSwapped={!presentationIsOpen} /> : null}
2021-08-05 12:22:07 +08:00
{
shouldShowExternalVideo
? <ExternalVideoContainer isLayoutSwapped={!presentationIsOpen} isPresenter={isPresenter} />
2021-08-05 12:22:07 +08:00
: null
}
{this.renderCaptions()}
2021-08-05 12:22:07 +08:00
<UploaderContainer />
<CaptionsSpeechContainer />
2021-08-05 12:22:07 +08:00
<BreakoutRoomInvitation />
<AudioContainer />
<ToastContainer rtl />
{(audioAlertEnabled || pushAlertEnabled)
&& (
<ChatAlertContainer
audioAlertEnabled={audioAlertEnabled}
pushAlertEnabled={pushAlertEnabled}
/>
)}
<StatusNotifier status="raiseHand" />
<ManyWebcamsNotifier />
<PollingContainer />
<ModalContainer />
<PadsSessionsContainer />
2021-08-05 12:22:07 +08:00
{this.renderActionsBar()}
{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;
App.defaultProps = defaultProps;
2022-04-09 03:05:29 +08:00
export default injectIntl(App);