diff --git a/react/features/toolbox/components/buttons/VideoMuteButton.web.js b/react/features/toolbox/components/buttons/VideoMuteButton.web.js index f6afe97d1..c0e2f3fdd 100644 --- a/react/features/toolbox/components/buttons/VideoMuteButton.web.js +++ b/react/features/toolbox/components/buttons/VideoMuteButton.web.js @@ -4,6 +4,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; +import UIEvents from '../../../../../service/UI/UIEvents'; import { ACTION_SHORTCUT_TRIGGERED, VIDEO_MUTE, @@ -117,6 +118,16 @@ export class VideoMuteButton extends AbstractVideoMuteButton { _doToggleVideo: () => void; + /** + * Emits an event to signal video mute should be toggled. + * + * @private + * @returns {void} + */ + _doToggleVideo() { + APP.UI.emitEvent(UIEvents.VIDEO_MUTED, !this.props._videoMuted); + } + _onShortcutToggleVideo: () => void; /**