Parcourir la source

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 il y a 8 ans
Parent
révision
b68b0079b3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js Voir le fichier

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

Chargement…
Annuler
Enregistrer