ソースを参照

fix(setAudioOutputDeviceId): check if supported

master
Pawel Domas 4年前
コミット
97dc07810c
1個のファイルの変更6行の追加0行の削除
  1. 6
    0
      react/features/base/devices/functions.js

+ 6
- 0
react/features/base/devices/functions.js ファイルの表示

267
 
267
 
268
     logger.debug(`setAudioOutputDevice: ${String(newLabel)}[${newId}]`);
268
     logger.debug(`setAudioOutputDevice: ${String(newLabel)}[${newId}]`);
269
 
269
 
270
+    if (!JitsiMeetJS.mediaDevices.isDeviceChangeAvailable('output')) {
271
+        logger.warn('Adjusting audio output is not supported');
272
+
273
+        return Promise.resolve();
274
+    }
275
+
270
     return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
276
     return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
271
         .then(() => {
277
         .then(() => {
272
             const newSettings = {
278
             const newSettings = {

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