Expose IsPublisher and IsSubscribedTo via LocalParticipant interface (#772)

This commit is contained in:
David Zhao
2022-06-19 23:58:31 -07:00
committed by GitHub
parent 1e6a12167b
commit 301bd2771c
4 changed files with 155 additions and 10 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (p *ParticipantImpl) SendSpeakerUpdate(speakers []*livekit.SpeakerInfo) err
var scopedSpeakers []*livekit.SpeakerInfo
for _, s := range speakers {
participantID := livekit.ParticipantID(s.Sid)
if p.isSubscribedTo(participantID) || participantID == p.ID() {
if p.IsSubscribedTo(participantID) || participantID == p.ID() {
scopedSpeakers = append(scopedSpeakers, s)
}
}