Sfoglia il codice sorgente

fix(toolbar): exercise old video muting flow

The redux flows for video muting may not cover all cases
that the conference.js flows cover. Just exercise the old
flows to be safe.
master
Leonard Kim 7 anni fa
parent
commit
7ad9fa8392

+ 11
- 0
react/features/toolbox/components/buttons/VideoMuteButton.web.js Vedi File

@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
4 4
 import React from 'react';
5 5
 import { connect } from 'react-redux';
6 6
 
7
+import UIEvents from '../../../../../service/UI/UIEvents';
7 8
 import {
8 9
     ACTION_SHORTCUT_TRIGGERED,
9 10
     VIDEO_MUTE,
@@ -117,6 +118,16 @@ export class VideoMuteButton extends AbstractVideoMuteButton {
117 118
 
118 119
     _doToggleVideo: () => void;
119 120
 
121
+    /**
122
+     * Emits an event to signal video mute should be toggled.
123
+     *
124
+     * @private
125
+     * @returns {void}
126
+     */
127
+    _doToggleVideo() {
128
+        APP.UI.emitEvent(UIEvents.VIDEO_MUTED, !this.props._videoMuted);
129
+    }
130
+
120 131
     _onShortcutToggleVideo: () => void;
121 132
 
122 133
     /**

Loading…
Annulla
Salva