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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user