Kaynağa Gözat

fix: ensure container is defined while attaching a track

For muted tracks, it is possible for undefined to get pushed
into the track's internal containers reference. The fix is
to immediately set the internal container variable in .attach()
to the passed in container value.
dev1
Leonard Kim 8 yıl önce
ebeveyn
işleme
b68b0079b3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js Dosyayı Görüntüle

@@ -253,7 +253,7 @@ JitsiTrack.prototype._maybeFireTrackAttached = function(container) {
253 253
  *          library. That's the case when Temasys plugin is in use.
254 254
  */
255 255
 JitsiTrack.prototype.attach = function(container) {
256
-    let c;
256
+    let c = container;
257 257
 
258 258
     if (this.stream) {
259 259
         c = RTCUtils.attachMediaStream(container, this.stream);

Loading…
İptal
Kaydet