You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LargeVideo.web.js 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* @flow */
  2. import PropTypes from 'prop-types';
  3. import React, { Component } from 'react';
  4. import { Watermarks } from '../../base/react';
  5. import Labels from './Labels';
  6. declare var interfaceConfig: Object;
  7. /**
  8. * Implements a React {@link Component} which represents the large video (a.k.a.
  9. * the conference participant who is on the local stage) on Web/React.
  10. *
  11. * @extends Component
  12. */
  13. export default class LargeVideo extends Component<*> {
  14. static propTypes = {
  15. /**
  16. * True if the {@code VideoQualityLabel} should not be displayed.
  17. */
  18. hideVideoQualityLabel: PropTypes.bool
  19. };
  20. /**
  21. * Implements React's {@link Component#render()}.
  22. *
  23. * @inheritdoc
  24. * @returns {ReactElement}
  25. */
  26. render() {
  27. return (
  28. <div
  29. className = 'videocontainer'
  30. id = 'largeVideoContainer'>
  31. <div id = 'sharedVideo'>
  32. <div id = 'sharedVideoIFrame' />
  33. </div>
  34. <div id = 'etherpad' />
  35. <Watermarks />
  36. <div id = 'dominantSpeaker'>
  37. <div className = 'dynamic-shadow' />
  38. <img
  39. id = 'dominantSpeakerAvatar'
  40. src = '' />
  41. </div>
  42. <div id = 'remotePresenceMessage' />
  43. <span id = 'remoteConnectionMessage' />
  44. <div>
  45. <div id = 'largeVideoBackgroundContainer' />
  46. {
  47. /**
  48. * FIXME: the architecture of elements related to the
  49. * large video and the naming. The background is not
  50. * part of largeVideoWrapper because we are controlling
  51. * the size of the video through largeVideoWrapper.
  52. * That's why we need another container for the the
  53. * background and the largeVideoWrapper in order to
  54. * hide/show them.
  55. */
  56. }
  57. <div id = 'largeVideoWrapper'>
  58. <video
  59. autoPlay = { true }
  60. id = 'largeVideo'
  61. muted = { true } />
  62. </div>
  63. </div>
  64. <span id = 'localConnectionMessage' />
  65. { this.props.hideVideoQualityLabel
  66. ? null : <Labels /> }
  67. </div>
  68. );
  69. }
  70. }