mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Update video thumbnail design Update design of indicators In filmstrip view move Screen Sharing indicator to the top Removed dominant speaker indicator Use ContextMenu component for the connection stats popover Combine Remove video menu and Meeting participant context menu into one component Moved some styles from SCSS to JSS Fix mobile avatars too big Fix mobile horizontal scroll Created button for Send to breakout room action
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
// @flow
|
|
|
|
import { createToolbarEvent, sendAnalytics } from '../../analytics';
|
|
import { openDialog } from '../../base/dialog';
|
|
import { IconMuteVideoEveryone } from '../../base/icons';
|
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
|
|
|
import { MuteEveryonesVideoDialog } from '.';
|
|
|
|
export type Props = AbstractButtonProps & {
|
|
|
|
/**
|
|
* The redux {@code dispatch} function.
|
|
*/
|
|
dispatch: Function,
|
|
|
|
/**
|
|
* The ID of the participant object that this button is supposed to keep unmuted.
|
|
*/
|
|
participantID: string,
|
|
|
|
/**
|
|
* The function to be used to translate i18n labels.
|
|
*/
|
|
t: Function
|
|
};
|
|
|
|
/**
|
|
* An abstract remote video menu button which disables the camera of all the other participants.
|
|
*/
|
|
export default class AbstractMuteEveryoneElsesVideoButton extends AbstractButton<Props, *> {
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.muteEveryoneElsesVideoStream';
|
|
icon = IconMuteVideoEveryone;
|
|
label = 'videothumbnail.domuteVideoOfOthers';
|
|
|
|
/**
|
|
* Handles clicking / pressing the button, and opens a confirmation dialog.
|
|
*
|
|
* @private
|
|
* @returns {void}
|
|
*/
|
|
_handleClick() {
|
|
const { dispatch, participantID } = this.props;
|
|
|
|
sendAnalytics(createToolbarEvent('mute.everyoneelsesvideo.pressed'));
|
|
dispatch(openDialog(MuteEveryonesVideoDialog, { exclude: [ participantID ] }));
|
|
}
|
|
}
|