ソースを参照

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
 

読み込み中…
キャンセル
保存