Handle migration better in single peer connection case. (#3886)

* Handle migration better in single peer connection case.

Have to avoid creating a sender for publish tracks.
Otherwise, the sender messes up the answer SDP because
it forced to inactive and that gets used by type match when setting
remote description offer.

Create sender only for m-lines which was used to send.

* remove unnecessary RemoveTrack
This commit is contained in:
Raja Subramanian
2025-08-29 18:18:32 +05:30
committed by GitHub
parent 5026de2bea
commit 38f7906ecb
2 changed files with 44 additions and 21 deletions
+1 -1
View File
@@ -816,7 +816,7 @@ func (t *TransportManager) SetMigrateInfo(
}
if t.params.UseSinglePeerConnection {
t.publisher.SetPreviousSdp(previousOffer, previousAnswer)
t.publisher.SetPreviousSdp(previousAnswer, previousOffer)
} else {
t.subscriber.SetPreviousSdp(previousOffer, previousAnswer)
}