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.

Filmstrip.web.js 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { Toolbox } from '../../toolbox';
  4. /**
  5. * Implements a React {@link Component} which represents the filmstrip on
  6. * Web/React.
  7. *
  8. * @extends Component
  9. */
  10. export default class Filmstrip extends Component {
  11. static propTypes = {
  12. /**
  13. * Whether or not the toolbox should be displayed within the filmstrip.
  14. */
  15. displayToolbox: React.PropTypes.bool
  16. };
  17. /**
  18. * Implements React's {@link Component#render()}.
  19. *
  20. * @inheritdoc
  21. * @returns {ReactElement}
  22. */
  23. render() {
  24. return (
  25. <div className = 'filmstrip'>
  26. { this.props.displayToolbox ? <Toolbox /> : null }
  27. <div
  28. className = 'filmstrip__videos'
  29. id = 'remoteVideos'>
  30. <div
  31. className = 'filmstrip__videos'
  32. id = 'filmstripLocalVideo'>
  33. <span
  34. className = 'videocontainer'
  35. id = 'localVideoContainer'>
  36. <div className = 'videocontainer__background' />
  37. <span id = 'localVideoWrapper' />
  38. <audio
  39. autoPlay = { true }
  40. id = 'localAudio'
  41. muted = { true } />
  42. <div className = 'videocontainer__toolbar' />
  43. <div className = 'videocontainer__toptoolbar' />
  44. <div className = 'videocontainer__hoverOverlay' />
  45. <div className = 'displayNameContainer' />
  46. <div className = 'avatar-container' />
  47. </span>
  48. </div>
  49. <div
  50. className = 'filmstrip__videos'
  51. id = 'filmstripRemoteVideos'>
  52. {/*
  53. * This extra video container is needed for scrolling
  54. * thumbnails in Firefox; otherwise, the flex
  55. * thumbnails resize instead of causing overflow.
  56. */}
  57. <div
  58. className = 'remote-videos-container'
  59. id = 'filmstripRemoteVideosContainer' />
  60. </div>
  61. <audio
  62. id = 'userJoined'
  63. preload = 'auto'
  64. src = 'sounds/joined.wav' />
  65. <audio
  66. id = 'userLeft'
  67. preload = 'auto'
  68. src = 'sounds/left.wav' />
  69. </div>
  70. </div>
  71. );
  72. }
  73. }