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
+3 -3
View File
@@ -417,7 +417,7 @@ func (r *Room) Join(participant types.LocalParticipant, requestSource routing.Me
"numParticipants", len(r.participants),
)
if participant.Kind() == livekit.ParticipantInfo_EGRESS && !r.protoRoom.ActiveRecording {
if participant.IsRecorder() && !r.protoRoom.ActiveRecording {
r.protoRoom.ActiveRecording = true
r.protoProxy.MarkDirty(true)
} else {
@@ -559,10 +559,10 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity, pID livek
}
immediateChange := false
if p.Kind() == livekit.ParticipantInfo_EGRESS {
if p.IsRecorder() {
activeRecording := false
for _, op := range r.participants {
if op.Kind() == livekit.ParticipantInfo_EGRESS {
if op.IsRecorder() {
activeRecording = true
break
}