fix(external-api): update settings on api device change

This commit is contained in:
Andrei Gavrilescu 2021-06-28 14:51:40 +03:00 committed by GitHub
parent c356c2360c
commit 13f9299921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@ import {
getAvailableDevices,
getDeviceIdByLabel,
groupDevicesByKind,
setAudioInputDevice,
setAudioInputDeviceAndUpdateSettings,
setAudioOutputDeviceId,
setVideoInputDevice
setVideoInputDeviceAndUpdateSettings
} from '../base/devices';
import { isIosMobileBrowser } from '../base/environment/utils';
import JitsiMeetJS from '../base/lib-jitsi-meet';
@ -190,14 +190,14 @@ export function processExternalDeviceRequest( // eslint-disable-line max-params
if (deviceId) {
switch (device.kind) {
case 'audioinput': {
dispatch(setAudioInputDevice(deviceId));
dispatch(setAudioInputDeviceAndUpdateSettings(deviceId));
break;
}
case 'audiooutput':
setAudioOutputDeviceId(deviceId, dispatch);
break;
case 'videoinput':
dispatch(setVideoInputDevice(deviceId));
dispatch(setVideoInputDeviceAndUpdateSettings(deviceId));
break;
default:
result = false;