Add Id to SDP signalling messages. (#3722)

* Add Id to SDP signalling messages.

Allows matching up offer/answer.
For now, the subscriber answer just logs if there is a mismatch.

* correct variable name

* test

* fixing rid

* revert

* clean up
This commit is contained in:
Raja Subramanian
2025-06-12 14:39:25 -07:00
committed by GitHub
parent 4ec828ce00
commit a9e2911645
14 changed files with 194 additions and 123 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func (s rtcRestService) Create(ctx context.Context, req *rpc.RTCRestCreateReques
return nil, ErrParticipantNotFound
}
if err := lp.HandleOffer(webrtc.SessionDescription{Type: webrtc.SDPTypeOffer, SDP: req.OfferSdp}); err != nil {
if err := lp.HandleOffer(webrtc.SessionDescription{Type: webrtc.SDPTypeOffer, SDP: req.OfferSdp}, 0); err != nil {
lp.GetLogger().Errorw("rtcRest service: could not handle offer", err)
return nil, err
}