Use active at time to check for track not bound timeout. (#4206)

This commit is contained in:
Raja Subramanian
2025-12-29 20:32:08 +05:30
committed by GitHub
parent 3606ce542f
commit 08793bea89
4 changed files with 79 additions and 4 deletions
+8
View File
@@ -569,6 +569,14 @@ func (p *ParticipantImpl) ConnectedAt() time.Time {
return p.connectedAt
}
func (p *ParticipantImpl) ActiveAt() time.Time {
if activeAt := p.lastActiveAt.Load(); activeAt != nil {
return *activeAt
}
return time.Time{}
}
func (p *ParticipantImpl) GetClientInfo() *livekit.ClientInfo {
p.lock.RLock()
defer p.lock.RUnlock()