瀏覽代碼

fix(TPCUtils): undefined is not an object (evaluating 'this.tpcUtils.replaceTrack(e,t).then')

By looking at the replaceTrack usages it's possible for it to be called with both new and old tracks null/undefined.
tags/v0.0.2
Pawel Domas 4 年之前
父節點
當前提交
4bd0b99391
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      modules/RTC/TPCUtils.js

+ 2
- 0
modules/RTC/TPCUtils.js 查看文件

@@ -365,6 +365,8 @@ export class TPCUtils {
365 365
                     this.pc.localSSRCs.set(newTrack.rtcId, ssrc);
366 366
                 });
367 367
         }
368
+
369
+        return Promise.resolve();
368 370
     }
369 371
 
370 372
     /**

Loading…
取消
儲存