rtc: parse each remote offer once per negotiation (#4904)

This commit is contained in:
Raja Subramanian
2026-09-25 05:01:30 +05:30
committed by GitHub
parent 6b2e3ece69
commit f52b0e2bd5
7 changed files with 235 additions and 60 deletions
+3 -6
View File
@@ -523,12 +523,9 @@ func (t *TransportManager) GetUnmatchMediaForOffer(parsedOffer *sdp.SessionDescr
return
}
func (t *TransportManager) LastPublisherOffer() *webrtc.SessionDescription {
return t.publisher.CurrentRemoteDescription()
}
func (t *TransportManager) LastPublisherOfferPending() *webrtc.SessionDescription {
return t.publisher.PendingRemoteDescription()
// LastPublisherOfferParsed returns the parsed form of the last offer set on the publisher peer connection
func (t *TransportManager) LastPublisherOfferParsed() *sdp.SessionDescription {
return t.publisher.RemoteOfferParsed()
}
func (t *TransportManager) HandleOffer(offer webrtc.SessionDescription, offerId uint32, shouldPend bool) error {