2018-04-11 20:04:40 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../base/i18n';
|
2021-09-29 12:06:03 +00:00
|
|
|
import { IconGauge } from '../../base/icons';
|
2021-07-08 13:42:07 +00:00
|
|
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
2018-04-11 20:04:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of the React {@code Component} props of
|
2021-07-08 13:42:07 +00:00
|
|
|
* {@link VideoQualityButton}.
|
2018-04-11 20:04:40 +00:00
|
|
|
*/
|
2021-07-08 13:42:07 +00:00
|
|
|
type Props = AbstractButtonProps & {
|
2018-04-11 20:04:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not audio only mode is currently enabled.
|
|
|
|
*/
|
|
|
|
_audioOnly: boolean,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The currently configured maximum quality resolution to be received from
|
2020-04-28 02:51:40 +00:00
|
|
|
* and sent to remote participants.
|
2018-04-11 20:04:40 +00:00
|
|
|
*/
|
2020-04-28 02:51:40 +00:00
|
|
|
_videoQuality: number,
|
2018-04-11 20:04:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Invoked to obtain translated strings.
|
|
|
|
*/
|
|
|
|
t: Function
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* React {@code Component} responsible for displaying a button in the overflow
|
|
|
|
* menu of the toolbar, including an icon showing the currently selected
|
|
|
|
* max receive quality.
|
|
|
|
*
|
2021-11-04 21:10:43 +00:00
|
|
|
* @augments Component
|
2018-04-11 20:04:40 +00:00
|
|
|
*/
|
2021-07-08 13:42:07 +00:00
|
|
|
class VideoQualityButton extends AbstractButton<Props, *> {
|
|
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.callQuality';
|
2021-09-29 12:06:03 +00:00
|
|
|
label = 'videoStatus.performanceSettings';
|
|
|
|
tooltip = 'videoStatus.performanceSettings';
|
|
|
|
icon = IconGauge;
|
2018-04-11 20:04:40 +00:00
|
|
|
}
|
|
|
|
|
2021-09-29 12:06:03 +00:00
|
|
|
export default translate(VideoQualityButton);
|