Revert to using answer for migration case. (#3884)

Was breaking migration in cases where there was inactive transceivers
because of direction check.

This change will break single peer connection case, but can look at that
one later.
This commit is contained in:
Raja Subramanian
2025-08-29 12:58:42 +05:30
committed by GitHub
parent 2aeadf14dc
commit 091e3c13a1
2 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -816,7 +816,7 @@ func (t *TransportManager) SetMigrateInfo(
}
if t.params.UseSinglePeerConnection {
t.publisher.SetPreviousSdp(previousAnswer, previousOffer)
t.publisher.SetPreviousSdp(previousOffer, previousAnswer)
} else {
t.subscriber.SetPreviousSdp(previousOffer, previousAnswer)
}