Add ability to change audio and video devices during a call (#7173)
This commit is contained in:
parent
ce3bc9dc07
commit
3c36a7f704
12 changed files with 247 additions and 24 deletions
|
@ -28,6 +28,7 @@ interface IProps extends React.ComponentProps<typeof AccessibleButton> {
|
|||
forceHide?: boolean;
|
||||
yOffset?: number;
|
||||
alignment?: Alignment;
|
||||
onHover?: (hovering: boolean) => void;
|
||||
onHideTooltip?(ev: SyntheticEvent): void;
|
||||
}
|
||||
|
||||
|
@ -52,6 +53,7 @@ export default class AccessibleTooltipButton extends React.PureComponent<IProps,
|
|||
}
|
||||
|
||||
private showTooltip = () => {
|
||||
if (this.props.onHover) this.props.onHover(true);
|
||||
if (this.props.forceHide) return;
|
||||
this.setState({
|
||||
hover: true,
|
||||
|
@ -59,6 +61,7 @@ export default class AccessibleTooltipButton extends React.PureComponent<IProps,
|
|||
};
|
||||
|
||||
private hideTooltip = (ev: SyntheticEvent) => {
|
||||
if (this.props.onHover) this.props.onHover(false);
|
||||
this.setState({
|
||||
hover: false,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue