Log warning instead of error for audio output device change errors

This commit is contained in:
tsareg 2016-06-03 11:15:07 +03:00
parent c29f9921a1
commit c1a93afeaf
2 changed files with 6 additions and 3 deletions

View File

@ -1379,7 +1379,9 @@ export default {
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
.then(() => console.log('changed audio output device'))
.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);
});
}
);

View File

@ -52,8 +52,9 @@ if (supportsLocalStorage()) {
JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
.catch((ex) => {
console.error('failed to set audio output device from local ' +
'storage', ex);
console.warn('Failed to set audio output device from local ' +
'storage. Default audio output device will be used' +
'instead.', ex);
});
}
} else {