2018-08-23 14:57:12 -05:00
|
|
|
// @flow
|
2017-05-24 12:01:46 -05:00
|
|
|
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
|
|
import { Watermarks } from '../../base/react';
|
2018-08-23 14:57:12 -05:00
|
|
|
import { Captions } from '../../subtitles/';
|
2018-05-16 07:00:16 -07:00
|
|
|
|
2017-08-09 12:40:03 -07:00
|
|
|
declare var interfaceConfig: Object;
|
2017-05-24 12:01:46 -05: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
|
|
|
|
|
*/
|
2019-02-05 11:10:15 +01:00
|
|
|
export default class LargeVideo extends Component<{}> {
|
2017-05-24 12:01:46 -05:00
|
|
|
/**
|
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
2018-08-23 14:57:12 -05:00
|
|
|
* @returns {React$Element}
|
2017-05-24 12:01:46 -05: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 16:33:22 -07:00
|
|
|
<div id = 'remotePresenceMessage' />
|
2017-05-24 12:01:46 -05:00
|
|
|
<span id = 'remoteConnectionMessage' />
|
2018-08-08 11:48:23 -07:00
|
|
|
<div id = 'largeVideoElementsContainer'>
|
2018-02-12 16:29:29 -08:00
|
|
|
<div id = 'largeVideoBackgroundContainer' />
|
2017-06-20 16:40:18 -05:00
|
|
|
|
2018-08-23 14:57:12 -05: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 16:40:18 -05:00
|
|
|
<div id = 'largeVideoWrapper'>
|
|
|
|
|
<video
|
|
|
|
|
autoPlay = { true }
|
|
|
|
|
id = 'largeVideo'
|
|
|
|
|
muted = { true } />
|
|
|
|
|
</div>
|
2017-05-24 12:01:46 -05:00
|
|
|
</div>
|
2018-07-17 19:31:12 +02:00
|
|
|
{ interfaceConfig.DISABLE_TRANSCRIPTION_SUBTITLES
|
2018-08-23 14:57:12 -05:00
|
|
|
|| <Captions /> }
|
2017-05-24 12:01:46 -05:00
|
|
|
<span id = 'localConnectionMessage' />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|