Ver código fonte

Merge pull request #672 from tsareg/audio_output_change_warning

Log warning instead of error for audio output device change errors
j8
Paweł Domas 9 anos atrás
pai
commit
bdb4d019f8
2 arquivos alterados com 6 adições e 3 exclusões
  1. 3
    1
      conference.js
  2. 3
    2
      modules/settings/Settings.js

+ 3
- 1
conference.js Ver arquivo

@@ -1378,7 +1378,9 @@ export default {
1378 1378
                 APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
1379 1379
                     .then(() => console.log('changed audio output device'))
1380 1380
                     .catch((err) => {
1381
-                        console.error('failed to set audio output device', err);
1381
+                        console.warn('Failed to change audio output device. ' +
1382
+                            'Default or previously set audio output device ' +
1383
+                            'will be used instead.', err);
1382 1384
                     });
1383 1385
             }
1384 1386
         );

+ 3
- 2
modules/settings/Settings.js Ver arquivo

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

Carregando…
Cancelar
Salvar