|
|
@ -128,7 +128,14 @@ function _initSettings(featureState) { |
|
|
|
const audioOutputDeviceId |
|
|
|
const audioOutputDeviceId |
|
|
|
= window.localStorage.getItem('audioOutputDeviceId') || 'default'; |
|
|
|
= window.localStorage.getItem('audioOutputDeviceId') || 'default'; |
|
|
|
|
|
|
|
|
|
|
|
if (audioOutputDeviceId |
|
|
|
settings = assignIfDefined({ |
|
|
|
|
|
|
|
audioOutputDeviceId, |
|
|
|
|
|
|
|
cameraDeviceId, |
|
|
|
|
|
|
|
localFlipX, |
|
|
|
|
|
|
|
micDeviceId |
|
|
|
|
|
|
|
}, settings); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (settings.audioOutputDeviceId |
|
|
|
!== JitsiMeetJS.mediaDevices.getAudioOutputDevice()) { |
|
|
|
!== JitsiMeetJS.mediaDevices.getAudioOutputDevice()) { |
|
|
|
JitsiMeetJS.mediaDevices.setAudioOutputDevice( |
|
|
|
JitsiMeetJS.mediaDevices.setAudioOutputDevice( |
|
|
|
audioOutputDeviceId |
|
|
|
audioOutputDeviceId |
|
|
@ -138,13 +145,6 @@ function _initSettings(featureState) { |
|
|
|
+ 'instead.', ex); |
|
|
|
+ 'instead.', ex); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
settings = assignIfDefined({ |
|
|
|
|
|
|
|
audioOutputDeviceId, |
|
|
|
|
|
|
|
cameraDeviceId, |
|
|
|
|
|
|
|
localFlipX, |
|
|
|
|
|
|
|
micDeviceId |
|
|
|
|
|
|
|
}, settings); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Things we stored in profile earlier
|
|
|
|
// Things we stored in profile earlier
|
|
|
|