Kaynağa Gözat

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.
dev1
Pawel Domas 4 yıl önce
ebeveyn
işleme
4bd0b99391
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2
    0
      modules/RTC/TPCUtils.js

+ 2
- 0
modules/RTC/TPCUtils.js Dosyayı Görüntüle

@@ -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…
İptal
Kaydet