Use answer with mid -> trackID mapping when in single peer connection (#4005)

* Use answer with mid -> trackID mapping when in single peer connection
mode.

* mage generate

* staticcheck

* handle mapped answer in tests
This commit is contained in:
Raja Subramanian
2025-10-15 19:36:22 +05:30
committed by GitHub
parent fe912acf37
commit 69ff25a055
12 changed files with 93 additions and 51 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ type Handler interface {
OnDataSendError(err error)
OnOffer(sd webrtc.SessionDescription, offerId uint32) error
OnSetRemoteDescriptionOffer()
OnAnswer(sd webrtc.SessionDescription, answerId uint32) error
OnAnswer(sd webrtc.SessionDescription, answerId uint32, midToTrackID map[string]string) error
OnNegotiationStateChanged(state NegotiationState)
OnNegotiationFailed()
OnStreamStateChange(update *streamallocator.StreamStateUpdate) error
@@ -67,7 +67,7 @@ func (h UnimplementedHandler) OnOffer(sd webrtc.SessionDescription, offerId uint
return ErrNoOfferHandler
}
func (h UnimplementedHandler) OnSetRemoteDescriptionOffer() {}
func (h UnimplementedHandler) OnAnswer(sd webrtc.SessionDescription, answerId uint32) error {
func (h UnimplementedHandler) OnAnswer(sd webrtc.SessionDescription, answerId uint32, midToTrackID map[string]string) error {
return ErrNoAnswerHandler
}
func (h UnimplementedHandler) OnNegotiationStateChanged(state NegotiationState) {}