ソースを参照

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年前
コミット
bdb4d019f8
2個のファイルの変更6行の追加3行の削除
  1. 3
    1
      conference.js
  2. 3
    2
      modules/settings/Settings.js

+ 3
- 1
conference.js ファイルの表示

1378
                 APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
1378
                 APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
1379
                     .then(() => console.log('changed audio output device'))
1379
                     .then(() => console.log('changed audio output device'))
1380
                     .catch((err) => {
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 ファイルの表示

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 {

読み込み中…
キャンセル
保存