Selaa lähdekoodia

fix(gum): skip retry if using new gum flow (#654)

The error handling block for unsupported resolution can be
skipped because native gum should be doing automatic retries
at lower resolutions and leaving in the handling will only
cause an infinite loop. Analytics for the error still get
sent in the error handling directly below the retry logic.
dev1
virtuacoplenny 7 vuotta sitten
vanhempi
commit
3853f64010
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      JitsiMeetJS.js

+ 2
- 1
JitsiMeetJS.js Näytä tiedosto

@@ -322,7 +322,8 @@ export default {
322 322
             .catch(error => {
323 323
                 promiseFulfilled = true;
324 324
 
325
-                if (error.name === JitsiTrackErrors.UNSUPPORTED_RESOLUTION) {
325
+                if (error.name === JitsiTrackErrors.UNSUPPORTED_RESOLUTION
326
+                    && !RTCBrowserType.usesNewGumFlow()) {
326 327
                     const oldResolution = options.resolution || '720';
327 328
                     const newResolution = getLowerResolution(oldResolution);
328 329
 

Loading…
Peruuta
Tallenna