Selaa lähdekoodia

fix(setAudioOutputDeviceId): check if supported

master
Pawel Domas 4 vuotta sitten
vanhempi
commit
97dc07810c
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6
    0
      react/features/base/devices/functions.js

+ 6
- 0
react/features/base/devices/functions.js Näytä tiedosto

@@ -267,6 +267,12 @@ export function setAudioOutputDeviceId(
267 267
 
268 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 276
     return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
271 277
         .then(() => {
272 278
             const newSettings = {

Loading…
Peruuta
Tallenna