Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 493d5a6

Browse files
authored
Fix tracksInfo is not defined. (#89)
1 parent a8a600d commit 493d5a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sdk/p2p/peerconnection-channel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ class P2PPeerConnectionChannel extends EventDispatcher {
489489
}
490490
if (this._pc.iceConnectionState === 'connected' ||
491491
this._pc.iceConnectionState === 'completed') {
492-
this._sendSignalingMessage(SignalingType.TRACKS_ADDED, tracksInfo);
492+
this._sendSignalingMessage(SignalingType.TRACKS_ADDED,
493+
this._remoteStreamInfo.get(event.stream.id).trackIds);
493494
} else {
494495
this._addedTrackIds = this._addedTrackIds.concat(
495496
this._remoteStreamInfo.get(event.stream.id).trackIds);

0 commit comments

Comments
 (0)