Browse 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 8 years ago
parent
commit
b68b0079b3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js View File

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

Loading…
Cancel
Save