浏览代码

Log warning instead of error for audio output device change errors

j8
tsareg 9 年前
父节点
当前提交
c1a93afeaf
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 3
    1
      conference.js
  2. 3
    2
      modules/settings/Settings.js

+ 3
- 1
conference.js 查看文件

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 查看文件

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 {

正在加载...
取消
保存