Bläddra i källkod

fix(connection-status): pass expected args to type change listener (#959)

The event TRACK_VIDEOTYPE_CHANGED passes only the video type
along, not the track.
dev1
virtuacoplenny 6 år sedan
förälder
incheckning
d0105dd16d
1 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1
    4
      modules/connectivity/ParticipantConnectionStatus.js

+ 1
- 4
modules/connectivity/ParticipantConnectionStatus.js Visa fil

@@ -506,7 +506,7 @@ export default class ParticipantConnectionStatusHandler {
506 506
                 this._onSignallingMuteChanged);
507 507
             remoteTrack.on(
508 508
                 JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,
509
-                this._onTrackVideoTypeChanged);
509
+                videoType => this._onTrackVideoTypeChanged(remoteTrack, videoType));
510 510
         }
511 511
     }
512 512
 
@@ -528,9 +528,6 @@ export default class ParticipantConnectionStatusHandler {
528 528
             remoteTrack.off(
529 529
                 JitsiTrackEvents.TRACK_MUTE_CHANGED,
530 530
                 this._onSignallingMuteChanged);
531
-            remoteTrack.off(
532
-                JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,
533
-                this._onTrackVideoTypeChanged);
534 531
 
535 532
             this.clearTimeout(endpointId);
536 533
             this.clearRtcMutedTimestamp(endpointId);

Laddar…
Avbryt
Spara