2018-08-23 19:57:12 +00:00
|
|
|
// @flow
|
2017-05-24 17:01:46 +00:00
|
|
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { Watermarks } from '../../base/react';
|
2018-08-23 19:57:12 +00:00
|
|
|
import { Captions } from '../../subtitles/';
|
2018-05-16 14:00:16 +00:00
|
|
|
|
|
|
|
import Labels from './Labels';
|
2017-08-09 19:40:03 +00:00
|
|
|
|
|
|
|
declare var interfaceConfig: Object;
|
2017-05-24 17:01:46 +00:00
|
|
|
|
2018-08-23 19:57:12 +00:00
|
|
|
/**
|
|
|
|
* The type of the React {@code Component} props of {@link LargeVideo}.
|
|
|
|
*/
|
|
|
|
type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* True if the {@code VideoQualityLabel} should not be displayed.
|
|
|
|
*/
|
|
|
|
hideVideoQualityLabel: boolean
|
|
|
|
};
|
|
|
|
|
2017-05-24 17:01:46 +00:00
|
|
|
/**
|
|
|
|
* Implements a React {@link Component} which represents the large video (a.k.a.
|
|
|
|
* the conference participant who is on the local stage) on Web/React.
|
|
|
|
*
|
|
|
|
* @extends Component
|
|
|
|
*/
|
2018-08-23 19:57:12 +00:00
|
|
|
export default class LargeVideo extends Component<Props> {
|
2017-05-24 17:01:46 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
2018-08-23 19:57:12 +00:00
|
|
|
* @returns {React$Element}
|
2017-05-24 17:01:46 +00:00
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className = 'videocontainer'
|
|
|
|
id = 'largeVideoContainer'>
|
|
|
|
<div id = 'sharedVideo'>
|
|
|
|
<div id = 'sharedVideoIFrame' />
|
|
|
|
</div>
|
|
|
|
<div id = 'etherpad' />
|
|
|
|
|
|
|
|
<Watermarks />
|
|
|
|
|
|
|
|
<div id = 'dominantSpeaker'>
|
|
|
|
<div className = 'dynamic-shadow' />
|
|
|
|
<img
|
|
|
|
id = 'dominantSpeakerAvatar'
|
|
|
|
src = '' />
|
|
|
|
</div>
|
2017-07-31 23:33:22 +00:00
|
|
|
<div id = 'remotePresenceMessage' />
|
2017-05-24 17:01:46 +00:00
|
|
|
<span id = 'remoteConnectionMessage' />
|
2018-08-08 18:48:23 +00:00
|
|
|
<div id = 'largeVideoElementsContainer'>
|
2018-02-13 00:29:29 +00:00
|
|
|
<div id = 'largeVideoBackgroundContainer' />
|
2017-06-20 21:40:18 +00:00
|
|
|
|
2018-08-23 19:57:12 +00:00
|
|
|
{/*
|
|
|
|
* FIXME: the architecture of elements related to the large
|
|
|
|
* video and the naming. The background is not part of
|
|
|
|
* largeVideoWrapper because we are controlling the size of
|
|
|
|
* the video through largeVideoWrapper. That's why we need
|
|
|
|
* another container for the background and the
|
|
|
|
* largeVideoWrapper in order to hide/show them.
|
|
|
|
*/}
|
2017-06-20 21:40:18 +00:00
|
|
|
<div id = 'largeVideoWrapper'>
|
|
|
|
<video
|
|
|
|
autoPlay = { true }
|
|
|
|
id = 'largeVideo'
|
|
|
|
muted = { true } />
|
|
|
|
</div>
|
2017-05-24 17:01:46 +00:00
|
|
|
</div>
|
2018-07-17 17:31:12 +00:00
|
|
|
{ interfaceConfig.DISABLE_TRANSCRIPTION_SUBTITLES
|
2018-08-23 19:57:12 +00:00
|
|
|
|| <Captions /> }
|
2017-05-24 17:01:46 +00:00
|
|
|
<span id = 'localConnectionMessage' />
|
2017-11-22 10:18:08 +00:00
|
|
|
{ this.props.hideVideoQualityLabel
|
2018-08-23 19:57:12 +00:00
|
|
|
|| <Labels /> }
|
2017-05-24 17:01:46 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|