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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <div id = 'dominantSpeakerAvatarContainer' />
  32. </div>
  33. <div id = 'remotePresenceMessage' />
  34. <span id = 'remoteConnectionMessage' />
  35. <div id = 'largeVideoElementsContainer'>
  36. <div id = 'largeVideoBackgroundContainer' />
  37. {/*
  38. * FIXME: the architecture of elements related to the large
  39. * video and the naming. The background is not part of
  40. * largeVideoWrapper because we are controlling the size of
  41. * the video through largeVideoWrapper. That's why we need
  42. * another container for the background and the
  43. * largeVideoWrapper in order to hide/show them.
  44. */}
  45. <div id = 'largeVideoWrapper'>
  46. <video
  47. autoPlay = { true }
  48. id = 'largeVideo'
  49. muted = { true } />
  50. </div>
  51. </div>
  52. { interfaceConfig.DISABLE_TRANSCRIPTION_SUBTITLES
  53. || <Captions /> }
  54. <span id = 'localConnectionMessage' />
  55. </div>
  56. );
  57. }
  58. }