backwards compatability for IsRecorder (#2647)

* backwards compatability for IsRecorder

* regenerate fakes
This commit is contained in:
David Colburn
2024-04-11 11:14:15 -07:00
committed by GitHub
parent d55948f761
commit 990cf6877b
5 changed files with 141 additions and 3 deletions
+7
View File
@@ -332,6 +332,13 @@ func (p *ParticipantImpl) Kind() livekit.ParticipantInfo_Kind {
return p.grants.GetParticipantKind()
}
func (p *ParticipantImpl) IsRecorder() bool {
p.lock.RLock()
defer p.lock.RUnlock()
return p.grants.GetParticipantKind() == livekit.ParticipantInfo_EGRESS || p.grants.Video.Recorder
}
func (p *ParticipantImpl) IsDependent() bool {
p.lock.RLock()
defer p.lock.RUnlock()