create new subscriber datatrack after migration (#600)

* use negotiated data channel in migration case

* create subscriber data track after migration

* fix participant state update

* add participant leave log

* update protocol
This commit is contained in:
cnderrauber
2022-04-07 15:43:24 +08:00
committed by GitHub
parent 93a2730128
commit f74144846b
8 changed files with 100 additions and 91 deletions
+1
View File
@@ -334,6 +334,7 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity) {
p.OnDataPacket(nil)
// close participant as well
r.Logger.Infow("closing participant for removal", "participantID", p.ID())
_ = p.Close(true)
r.lock.RLock()