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.

VideoQualityButton.web.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // @flow
  2. import { translate } from '../../base/i18n';
  3. import { IconGauge } from '../../base/icons';
  4. import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
  5. /**
  6. * The type of the React {@code Component} props of
  7. * {@link VideoQualityButton}.
  8. */
  9. type Props = AbstractButtonProps & {
  10. /**
  11. * Whether or not audio only mode is currently enabled.
  12. */
  13. _audioOnly: boolean,
  14. /**
  15. * The currently configured maximum quality resolution to be received from
  16. * and sent to remote participants.
  17. */
  18. _videoQuality: number,
  19. /**
  20. * Invoked to obtain translated strings.
  21. */
  22. t: Function
  23. };
  24. /**
  25. * React {@code Component} responsible for displaying a button in the overflow
  26. * menu of the toolbar, including an icon showing the currently selected
  27. * max receive quality.
  28. *
  29. * @augments Component
  30. */
  31. class VideoQualityButton extends AbstractButton<Props, *> {
  32. accessibilityLabel = 'toolbar.accessibilityLabel.callQuality';
  33. label = 'videoStatus.performanceSettings';
  34. tooltip = 'videoStatus.performanceSettings';
  35. icon = IconGauge;
  36. }
  37. export default translate(VideoQualityButton);