fix: use track SID instead of source ID

This commit is contained in:
David Zhao
2021-02-08 16:45:18 -08:00
parent bc8cd33dfc
commit 61b9569e38
2 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
defer t.lock.Unlock()
if t.receiver == nil {
// pack ID to identify all publishedTracks
packedId := PackTrackId(t.participantId, track.ID())
packedId := PackTrackId(t.participantId, t.ID())
t.receiver = NewWrappedReceiver(sfu.NewWebRTCReceiver(receiver, track, t.participantId), packedId)
t.receiver.SetRTCPCh(t.rtcpCh)
t.receiver.OnCloseHandler(func() {