fix(external-api): persist audio output device
This commit is contained in:
parent
af9958ad66
commit
d0be8dcf9d
|
@ -10,7 +10,7 @@ import {
|
||||||
getDeviceIdByLabel,
|
getDeviceIdByLabel,
|
||||||
groupDevicesByKind,
|
groupDevicesByKind,
|
||||||
setAudioInputDeviceAndUpdateSettings,
|
setAudioInputDeviceAndUpdateSettings,
|
||||||
setAudioOutputDeviceId,
|
setAudioOutputDevice,
|
||||||
setVideoInputDeviceAndUpdateSettings
|
setVideoInputDeviceAndUpdateSettings
|
||||||
} from '../base/devices';
|
} from '../base/devices';
|
||||||
import { isIosMobileBrowser } from '../base/environment/utils';
|
import { isIosMobileBrowser } from '../base/environment/utils';
|
||||||
|
@ -189,12 +189,11 @@ export function processExternalDeviceRequest( // eslint-disable-line max-params
|
||||||
|
|
||||||
if (deviceId) {
|
if (deviceId) {
|
||||||
switch (device.kind) {
|
switch (device.kind) {
|
||||||
case 'audioinput': {
|
case 'audioinput':
|
||||||
dispatch(setAudioInputDeviceAndUpdateSettings(deviceId));
|
dispatch(setAudioInputDeviceAndUpdateSettings(deviceId));
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case 'audiooutput':
|
case 'audiooutput':
|
||||||
setAudioOutputDeviceId(deviceId, dispatch);
|
dispatch(setAudioOutputDevice(deviceId));
|
||||||
break;
|
break;
|
||||||
case 'videoinput':
|
case 'videoinput':
|
||||||
dispatch(setVideoInputDeviceAndUpdateSettings(deviceId));
|
dispatch(setVideoInputDeviceAndUpdateSettings(deviceId));
|
||||||
|
|
Loading…
Reference in New Issue