Merge pull request #672 from tsareg/audio_output_change_warning

Log warning instead of error for audio output device change errors
This commit is contained in:
Paweł Domas
2016-06-03 11:11:20 +02:00
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -1378,7 +1378,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);
});
}
);
+3 -2
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 {