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.

VideoMutedIndicator.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { IconCameraDisabled } from '../../../base/icons';
  4. import { BaseIndicator } from '../../../base/react';
  5. /**
  6. * The type of the React {@code Component} props of {@link VideoMutedIndicator}.
  7. */
  8. type Props = {
  9. /**
  10. * From which side of the indicator the tooltip should appear from.
  11. */
  12. tooltipPosition: string
  13. };
  14. /**
  15. * React {@code Component} for showing a video muted icon with a tooltip.
  16. *
  17. * @extends Component
  18. */
  19. class VideoMutedIndicator extends Component<Props> {
  20. /**
  21. * Implements React's {@link Component#render()}.
  22. *
  23. * @inheritdoc
  24. */
  25. render() {
  26. return (
  27. <BaseIndicator
  28. className = 'videoMuted toolbar-icon'
  29. icon = { IconCameraDisabled }
  30. iconId = 'camera-disabled'
  31. iconSize = { 13 }
  32. tooltipKey = 'videothumbnail.videomute'
  33. tooltipPosition = { this.props.tooltipPosition } />
  34. );
  35. }
  36. }
  37. export default VideoMutedIndicator;