feat(prejoin_page): Add prejoin page

This commit is contained in:
Vlad Piersec
2020-04-16 13:47:10 +03:00
committed by Saúl Ibarra Corretgé
parent 5b53232964
commit a45cbf41ef
36 changed files with 2274 additions and 147 deletions

View File

@@ -13,6 +13,7 @@ import { Chat } from '../../../chat';
import { Filmstrip } from '../../../filmstrip';
import { CalleeInfoContainer } from '../../../invite';
import { LargeVideo } from '../../../large-video';
import { Prejoin, isPrejoinPageVisible } from '../../../prejoin';
import { LAYOUTS, getCurrentLayout } from '../../../video-layout';
import {
@@ -84,6 +85,11 @@ type Props = AbstractProps & {
*/
_roomName: string,
/**
* If prejoin page is visible or not.
*/
_showPrejoin: boolean,
dispatch: Function,
t: Function
}
@@ -178,16 +184,22 @@ class Conference extends AbstractConference<Props, *> {
// interfaceConfig is obsolete but legacy support is required.
filmStripOnly: filmstripOnly
} = interfaceConfig;
const {
_iAmRecorder,
_layoutClassName,
_showPrejoin
} = this.props;
const hideVideoQualityLabel
= filmstripOnly
|| VIDEO_QUALITY_LABEL_DISABLED
|| this.props._iAmRecorder;
|| _iAmRecorder;
return (
<div
className = { this.props._layoutClassName }
className = { _layoutClassName }
id = 'videoconference_page'
onMouseMove = { this._onShowToolbar }>
<Notice />
<Subject />
<div id = 'videospace'>
@@ -197,11 +209,13 @@ class Conference extends AbstractConference<Props, *> {
<Filmstrip filmstripOnly = { filmstripOnly } />
</div>
{ filmstripOnly || <Toolbox /> }
{ filmstripOnly || _showPrejoin || <Toolbox /> }
{ filmstripOnly || <Chat /> }
{ this.renderNotificationsContainer() }
{ !filmstripOnly && _showPrejoin && <Prejoin />}
<CalleeInfoContainer />
</div>
);
@@ -268,7 +282,8 @@ function _mapStateToProps(state) {
...abstractMapStateToProps(state),
_iAmRecorder: state['features/base/config'].iAmRecorder,
_layoutClassName: LAYOUT_CLASSNAMES[getCurrentLayout(state)],
_roomName: getConferenceNameForTitle(state)
_roomName: getConferenceNameForTitle(state),
_showPrejoin: isPrejoinPageVisible(state)
};
}