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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { Watermarks } from '../../base/react';
  4. import { VideoStatusLabel } from '../../video-status-label';
  5. /**
  6. * Implements a React {@link Component} which represents the large video (a.k.a.
  7. * the conference participant who is on the local stage) on Web/React.
  8. *
  9. * @extends Component
  10. */
  11. export default class LargeVideo extends Component {
  12. /**
  13. * Implements React's {@link Component#render()}.
  14. *
  15. * @inheritdoc
  16. * @returns {ReactElement}
  17. */
  18. render() {
  19. return (
  20. <div
  21. className = 'videocontainer'
  22. id = 'largeVideoContainer'>
  23. <div id = 'sharedVideo'>
  24. <div id = 'sharedVideoIFrame' />
  25. </div>
  26. <div id = 'etherpad' />
  27. <Watermarks />
  28. <div id = 'dominantSpeaker'>
  29. <div className = 'dynamic-shadow' />
  30. <img
  31. id = 'dominantSpeakerAvatar'
  32. src = '' />
  33. </div>
  34. <span id = 'remoteConnectionMessage' />
  35. <div>
  36. <div className = 'video_blurred_container'>
  37. <video
  38. autoPlay = { true }
  39. id = 'largeVideoBackground'
  40. muted = 'true' />
  41. </div>
  42. {
  43. /**
  44. * FIXME: the architecture of elements related to the
  45. * large video and the naming. The background is not
  46. * part of largeVideoWrapper because we are controlling
  47. * the size of the video through largeVideoWrapper.
  48. * That's why we need another container for the the
  49. * background and the largeVideoWrapper in order to
  50. * hide/show them.
  51. */
  52. }
  53. <div id = 'largeVideoWrapper'>
  54. <video
  55. autoPlay = { true }
  56. id = 'largeVideo'
  57. muted = { true } />
  58. </div>
  59. </div>
  60. <span id = 'localConnectionMessage' />
  61. <VideoStatusLabel />
  62. <span
  63. className = 'video-state-indicator centeredVideoLabel'
  64. id = 'recordingLabel'>
  65. <span id = 'recordingLabelText' />
  66. <img
  67. className = 'recordingSpinner'
  68. id = 'recordingSpinner'
  69. src = 'images/spin.svg' />
  70. </span>
  71. </div>
  72. );
  73. }
  74. }