always allow ICE candidates, even before offer
This commit is contained in:
@@ -321,12 +321,6 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.Partici
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
case *livekit.SignalRequest_Trickle:
|
case *livekit.SignalRequest_Trickle:
|
||||||
if participant.State() == livekit.ParticipantInfo_JOINING {
|
|
||||||
logger.Errorw("cannot trickle before offer", "participant", participant.Identity())
|
|
||||||
//conn.WriteJSON(jsonError(http.StatusNotAcceptable, "cannot trickle before peer offer"))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
candidateInit := rtc.FromProtoTrickle(msg.Trickle)
|
candidateInit := rtc.FromProtoTrickle(msg.Trickle)
|
||||||
//logger.Debugw("adding peer candidate", "participant", participant.ID())
|
//logger.Debugw("adding peer candidate", "participant", participant.ID())
|
||||||
if err := participant.AddICECandidate(candidateInit, msg.Trickle.Target); err != nil {
|
if err := participant.AddICECandidate(candidateInit, msg.Trickle.Target); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user