浏览代码

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 年前
父节点
当前提交
3853f64010
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      JitsiMeetJS.js

+ 2
- 1
JitsiMeetJS.js 查看文件

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

正在加载...
取消
保存