Session migration (#319)
* migrate between nodes * session migration * bug fix * use version instead of query parameter * clean code * clean * merge master * solve comments * solve comment * update go.mod Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
co-authored by
cnderrauber
parent
ecf9590d56
commit
8582ca4c9b
@@ -250,6 +250,8 @@ func (r *Room) Join(participant types.Participant, opts *ParticipantOptions, ice
|
||||
return err
|
||||
}
|
||||
|
||||
participant.SetMigrateState(types.MigrateComplete)
|
||||
|
||||
if participant.SubscriberAsPrimary() {
|
||||
// initiates sub connection as primary
|
||||
participant.Negotiate()
|
||||
@@ -377,6 +379,10 @@ func (r *Room) UpdateSubscriptions(
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Room) SyncState(participant types.Participant, state *livekit.SyncState) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Room) UpdateSubscriptionPermissions(participant types.Participant, permissions *livekit.UpdateSubscriptionPermissions) error {
|
||||
return participant.UpdateSubscriptionPermissions(permissions, r.GetParticipantBySid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user