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.3KB

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