Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

LargeVideo.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import React, { Component } from 'react';
  2. import { connect } from 'react-redux';
  3. import { ParticipantView } from '../../conference';
  4. import { styles } from './styles';
  5. /**
  6. * Large video React component.
  7. *
  8. * @extends Component
  9. */
  10. class LargeVideo extends Component {
  11. /**
  12. * Implements React's {@link Component#render()}.
  13. *
  14. * @inheritdoc
  15. * @returns {ReactElement}
  16. */
  17. render() {
  18. return (
  19. <ParticipantView
  20. avatarStyle = { styles.avatar }
  21. participantId = { this.props._participantId }
  22. style = { styles.largeVideo }
  23. zOrder = { 0 } />
  24. );
  25. }
  26. }
  27. /**
  28. * LargeVideo component's property types.
  29. *
  30. * @static
  31. */
  32. LargeVideo.propTypes = {
  33. /**
  34. * The ID of the participant (to be) depicted by LargeVideo.
  35. *
  36. * @private
  37. */
  38. _participantId: React.PropTypes.string
  39. };
  40. /**
  41. * Maps (parts of) the Redux state to the associated LargeVideo's props.
  42. *
  43. * @param {Object} state - Redux state.
  44. * @returns {{
  45. * _participantId: string
  46. * }}
  47. */
  48. function mapStateToProps(state) {
  49. return {
  50. _participantId: state['features/largeVideo'].participantId
  51. };
  52. }
  53. export default connect(mapStateToProps)(LargeVideo);