Sfoglia il codice sorgente

Log warning instead of error for audio output device change errors

j8
tsareg 9 anni fa
parent
commit
c1a93afeaf
2 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 3
    1
      conference.js
  2. 3
    2
      modules/settings/Settings.js

+ 3
- 1
conference.js Vedi File

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

+ 3
- 2
modules/settings/Settings.js Vedi File

52
         JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
52
         JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
53
         JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
53
         JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
54
             .catch((ex) => {
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
 } else {
60
 } else {

Loading…
Annulla
Salva