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.

AbstractVideoQualityLabel.js 802B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @flow
  2. import { Component } from 'react';
  3. export type Props = {
  4. /**
  5. * Whether or not the conference is in audio only mode.
  6. */
  7. _audioOnly: boolean,
  8. /**
  9. * Invoked to obtain translated strings.
  10. */
  11. t: Function
  12. };
  13. /**
  14. * Abstract class for the {@code VideoQualityLabel} component.
  15. */
  16. export default class AbstractVideoQualityLabel<P: Props> extends Component<P> {
  17. }
  18. /**
  19. * Maps (parts of) the Redux state to the associated
  20. * {@code AbstractVideoQualityLabel}'s props.
  21. *
  22. * @param {Object} state - The Redux state.
  23. * @private
  24. * @returns {{
  25. * _audioOnly: boolean
  26. * }}
  27. */
  28. export function _abstractMapStateToProps(state: Object) {
  29. const { enabled: audioOnly } = state['features/base/audio-only'];
  30. return {
  31. _audioOnly: audioOnly
  32. };
  33. }