浏览代码

fix(device-selection): Update redux when a new speaker is selected

Update userSelectedAudioOutputDeviceId and userSelectedAudioOutputDeviceLabel when a new speaker is selected from the audio settings popup menu
j8
Jaya Allamsetty 4 年前
父节点
当前提交
45570bc0e7
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      react/features/base/devices/actions.js

+ 4
- 2
react/features/base/devices/actions.js 查看文件

243
  * @returns {Function}
243
  * @returns {Function}
244
  */
244
  */
245
 export function setAudioOutputDevice(deviceId) {
245
 export function setAudioOutputDevice(deviceId) {
246
-    return function(dispatch) {
247
-        return setAudioOutputDeviceId(deviceId, dispatch);
246
+    return function(dispatch, getState) {
247
+        const deviceLabel = getDeviceLabelById(getState(), deviceId, 'audioOutput');
248
+
249
+        return setAudioOutputDeviceId(deviceId, dispatch, true, deviceLabel);
248
     };
250
     };
249
 }
251
 }
250
 
252
 

正在加载...
取消
保存