|
@@ -9,9 +9,9 @@ import {
|
9
|
9
|
getAvailableDevices,
|
10
|
10
|
getDeviceIdByLabel,
|
11
|
11
|
groupDevicesByKind,
|
12
|
|
- setAudioInputDevice,
|
|
12
|
+ setAudioInputDeviceAndUpdateSettings,
|
13
|
13
|
setAudioOutputDeviceId,
|
14
|
|
- setVideoInputDevice
|
|
14
|
+ setVideoInputDeviceAndUpdateSettings
|
15
|
15
|
} from '../base/devices';
|
16
|
16
|
import { isIosMobileBrowser } from '../base/environment/utils';
|
17
|
17
|
import JitsiMeetJS from '../base/lib-jitsi-meet';
|
|
@@ -190,14 +190,14 @@ export function processExternalDeviceRequest( // eslint-disable-line max-params
|
190
|
190
|
if (deviceId) {
|
191
|
191
|
switch (device.kind) {
|
192
|
192
|
case 'audioinput': {
|
193
|
|
- dispatch(setAudioInputDevice(deviceId));
|
|
193
|
+ dispatch(setAudioInputDeviceAndUpdateSettings(deviceId));
|
194
|
194
|
break;
|
195
|
195
|
}
|
196
|
196
|
case 'audiooutput':
|
197
|
197
|
setAudioOutputDeviceId(deviceId, dispatch);
|
198
|
198
|
break;
|
199
|
199
|
case 'videoinput':
|
200
|
|
- dispatch(setVideoInputDevice(deviceId));
|
|
200
|
+ dispatch(setVideoInputDeviceAndUpdateSettings(deviceId));
|
201
|
201
|
break;
|
202
|
202
|
default:
|
203
|
203
|
result = false;
|