Add GetClientInfo interface, to be used to decide migration vs full-reconenct (#1827)

This commit is contained in:
Raja Subramanian
2023-06-26 23:15:53 +05:30
committed by GitHub
parent 95f360bbce
commit 352bb1d204
3 changed files with 72 additions and 0 deletions
+6
View File
@@ -279,6 +279,12 @@ func (p *ParticipantImpl) ConnectedAt() time.Time {
return p.connectedAt
}
func (p *ParticipantImpl) GetClientInfo() *livekit.ClientInfo {
p.lock.RLock()
defer p.lock.RUnlock()
return p.params.ClientInfo.ClientInfo
}
func (p *ParticipantImpl) GetClientConfiguration() *livekit.ClientConfiguration {
p.lock.RLock()
defer p.lock.RUnlock()