瀏覽代碼

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 年之前
父節點
當前提交
7ad9fa8392
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. 11
    0
      react/features/toolbox/components/buttons/VideoMuteButton.web.js

+ 11
- 0
react/features/toolbox/components/buttons/VideoMuteButton.web.js 查看文件

@@ -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…
取消
儲存