Log warning instead of error for audio output device change errors
This commit is contained in:
parent
c29f9921a1
commit
c1a93afeaf
|
@ -1379,7 +1379,9 @@ export default {
|
||||||
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
||||||
.then(() => console.log('changed audio output device'))
|
.then(() => console.log('changed audio output device'))
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error('failed to set audio output device', err);
|
console.warn('Failed to change audio output device. ' +
|
||||||
|
'Default or previously set audio output device ' +
|
||||||
|
'will be used instead.', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -52,8 +52,9 @@ if (supportsLocalStorage()) {
|
||||||
JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
|
JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
|
||||||
JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
|
JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
|
||||||
.catch((ex) => {
|
.catch((ex) => {
|
||||||
console.error('failed to set audio output device from local ' +
|
console.warn('Failed to set audio output device from local ' +
|
||||||
'storage', ex);
|
'storage. Default audio output device will be used' +
|
||||||
|
'instead.', ex);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue