livekit-client 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10265,7 +10265,7 @@ function computeBitrate(currentStats, prevStats) {
10265
10265
  return (bytesNow - bytesPrev) * 8 * 1000 / (currentStats.timestamp - prevStats.timestamp);
10266
10266
  }
10267
10267
 
10268
- var version$1 = "1.2.3";
10268
+ var version$1 = "1.2.4";
10269
10269
 
10270
10270
  const version = version$1;
10271
10271
  const protocolVersion = 8;
@@ -14041,6 +14041,17 @@ class RemoteParticipant extends Participant {
14041
14041
  publication = new RemoteTrackPublication(kind, ti.sid, ti.name);
14042
14042
  publication.updateInfo(ti);
14043
14043
  newTracks.set(ti.sid, publication);
14044
+ const existingTrackOfSource = Array.from(this.tracks.values()).find(publishedTrack => publishedTrack.source === (publication === null || publication === void 0 ? void 0 : publication.source));
14045
+
14046
+ if (existingTrackOfSource) {
14047
+ livekitLogger.warn("received a second track publication for ".concat(this.identity, " with the same source: ").concat(publication.source), {
14048
+ oldTrack: existingTrackOfSource,
14049
+ newTrack: publication,
14050
+ participant: this,
14051
+ participantInfo: info
14052
+ });
14053
+ }
14054
+
14044
14055
  this.addTrackPublication(publication);
14045
14056
  } else {
14046
14057
  publication.updateInfo(ti);
@@ -14051,15 +14062,6 @@ class RemoteParticipant extends Participant {
14051
14062
 
14052
14063
  newTracks.forEach(publication => {
14053
14064
  this.emit(ParticipantEvent.TrackPublished, publication);
14054
- const existingTrackOfSource = Array.from(this.tracks.values()).find(publishedTrack => publishedTrack.source === publication.source);
14055
-
14056
- if (existingTrackOfSource) {
14057
- livekitLogger.warn("received a second track publication for ".concat(this.identity, " with the same source: ").concat(publication.source), {
14058
- oldTrack: existingTrackOfSource,
14059
- newTrack: publication,
14060
- participant: this
14061
- });
14062
- }
14063
14065
  }); // detect removed tracks
14064
14066
 
14065
14067
  this.tracks.forEach(publication => {