add reconnect response to update configuration while reconnecting (#1300)

* add reconnect response to update configuration while reconnecting

* fix test
This commit is contained in:
cnderrauber
2023-01-11 17:40:12 +08:00
committed by GitHub
parent c022319845
commit 25debc6d35
7 changed files with 114 additions and 11 deletions
+8
View File
@@ -174,6 +174,14 @@ func (p *ParticipantImpl) SendRefreshToken(token string) error {
})
}
func (p *ParticipantImpl) SendReconnectResponse(reconnectResponse *livekit.ReconnectResponse) error {
return p.writeMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_Reconnect{
Reconnect: reconnectResponse,
},
})
}
func (p *ParticipantImpl) sendICECandidate(c *webrtc.ICECandidate, target livekit.SignalTarget) error {
trickle := ToProtoTrickle(c.ToJSON())
trickle.Target = target