Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Filmstrip.web.js 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <span
  45. className
  46. = 'connection-indicator-container' />
  47. </div>
  48. <div className = 'videocontainer__hoverOverlay' />
  49. <div className = 'displayNameContainer' />
  50. <div className = 'avatar-container' />
  51. </span>
  52. </div>
  53. <div
  54. className = 'filmstrip__videos'
  55. id = 'filmstripRemoteVideos'>
  56. {/*
  57. * This extra video container is needed for scrolling
  58. * thumbnails in Firefox; otherwise, the flex
  59. * thumbnails resize instead of causing overflow.
  60. */}
  61. <div
  62. className = 'remote-videos-container'
  63. id = 'filmstripRemoteVideosContainer' />
  64. </div>
  65. <audio
  66. id = 'userJoined'
  67. preload = 'auto'
  68. src = 'sounds/joined.wav' />
  69. <audio
  70. id = 'userLeft'
  71. preload = 'auto'
  72. src = 'sounds/left.wav' />
  73. </div>
  74. </div>
  75. );
  76. }
  77. }