Browse Source

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 years ago
parent
commit
3853f64010
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      JitsiMeetJS.js

+ 2
- 1
JitsiMeetJS.js View File

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

Loading…
Cancel
Save