Get to the point of connecting publisher PC and using it for async signalling (#3822)
* starting signalling DC work * WIP * plumbing data channel * add datachannel message sink file * mage generate * clean up
This commit is contained in:
@@ -945,7 +945,7 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.LocalPa
|
||||
return
|
||||
}
|
||||
|
||||
if err := participant.HandleSignalRequest(obj); err != nil {
|
||||
if err := participant.HandleSignalMessage(obj); err != nil {
|
||||
// more specific errors are already logged
|
||||
// treat errors returned as fatal
|
||||
return
|
||||
|
||||
@@ -207,7 +207,7 @@ func (s signalv2ParticipantService) RelaySignalv2Participant(ctx context.Context
|
||||
return nil, ErrParticipantNotFound
|
||||
}
|
||||
|
||||
err := lp.HandleSignalRequest(req.WireMessage)
|
||||
err := lp.HandleSignalMessage(req.WireMessage)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -223,6 +223,13 @@ func (s *RTCv2Service) handleParticipantPatch(w http.ResponseWriter, r *http.Req
|
||||
HandleErrorJson(w, r, http.StatusBadRequest, fmt.Errorf("could not get wire message: %w", err))
|
||||
return
|
||||
}
|
||||
logger.Debugw(
|
||||
"participant request",
|
||||
"room", roomName,
|
||||
"participant", participantIdentity,
|
||||
"pID", pID,
|
||||
"participantRequest", logger.Proto(wireMessage),
|
||||
)
|
||||
|
||||
res, err := s.signalv2ParticipantClient.RelaySignalv2Participant(
|
||||
r.Context(),
|
||||
@@ -257,7 +264,7 @@ func (s *RTCv2Service) handleParticipantPatch(w http.ResponseWriter, r *http.Req
|
||||
"room", roomName,
|
||||
"participant", participantIdentity,
|
||||
"pID", pID,
|
||||
"participantResponse", logger.Proto(res),
|
||||
"participantResponse", logger.Proto(res.WireMessage),
|
||||
)
|
||||
|
||||
marshalled, err := proto.Marshal(res.WireMessage)
|
||||
|
||||
Reference in New Issue
Block a user