Bläddra i källkod

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 år sedan
förälder
incheckning
3853f64010
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2
    1
      JitsiMeetJS.js

+ 2
- 1
JitsiMeetJS.js Visa fil

@@ -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
 

Laddar…
Avbryt
Spara