Improve connectivity check (#1366)

* Add Timer to detect dtls failure quickly

* Fix pc state check in timeout after ice

* More strict conditions to switch candidate type

* log for signal interuppt

* typo
This commit is contained in:
cnderrauber
2023-02-01 20:00:34 +08:00
committed by GitHub
parent 1c321bfccc
commit 7e5ba6a3b0
6 changed files with 123 additions and 13 deletions
+2
View File
@@ -8,6 +8,8 @@ import (
)
func HandleParticipantSignal(room types.Room, participant types.LocalParticipant, req *livekit.SignalRequest, pLogger logger.Logger) error {
participant.UpdateLastSeenSignal()
switch msg := req.Message.(type) {
case *livekit.SignalRequest_Offer:
participant.HandleOffer(FromProtoSessionDescription(msg.Offer))