Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(toolbar): exercise old video muting flow

Leonard Kim7ad9fa8392e2
diff --git a/react/features/toolbox/components/buttons/VideoMuteButton.web.js b/react/features/toolbox/components/buttons/VideoMuteButton.web.js
index f6afe97d1a..c0e2f3fddf 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;
/**