Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
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.
 
 
 
 
 
 
jitsi-meet/react/features/video-quality/components/VideoQualityButton.web.js

58 lines
1.5 KiB

import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { ToolbarButtonWithDialog } from '../../toolbox';
import VideoQualitySlider from './VideoQualitySlider';
/**
* A configuration object to describe how {@code ToolbarButton} should render
* the button.
*
* @type {object}
*/
const DEFAULT_BUTTON_CONFIGURATION = {
buttonName: 'videoquality',
classNames: [ 'button', 'icon-visibility' ],
enabled: true,
id: 'toolbar_button_videoquality',
tooltipKey: 'videoStatus.qualityButtonTip'
};
/**
* React {@code Component} for displaying a button which will open an inline
* dialog for changing received video quality settings.
*
* @extends Component
*/
class VideoQualityButton extends Component {
/**
* {@code VideoQualityButton}'s property types.
*
* @static
*/
static propTypes = {
/**
* From which side tooltips should display. Will be re-used for
* displaying the inline dialog for video quality adjustment.
*/
tooltipPosition: PropTypes.string
};
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
return (
<ToolbarButtonWithDialog
button = { DEFAULT_BUTTON_CONFIGURATION }
content = { VideoQualitySlider }
tooltipPosition = { this.props.tooltipPosition } />
);
}
}
export default VideoQualityButton;