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