No op implementation to remove stubs in remote (#327)

* No op implementation to remove stubs in remote

* Place interface first
This commit is contained in:
Raja Subramanian
2022-01-10 19:17:58 +05:30
committed by GitHub
parent d6deb6cfa4
commit e82b8ea0a0
11 changed files with 3467 additions and 139 deletions
+3 -3
View File
@@ -552,7 +552,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)
}
}
@@ -663,7 +663,7 @@ func (p *ParticipantImpl) GetConnectionQuality() *livekit.ConnectionQualityInfo
}
}
func (p *ParticipantImpl) IsSubscribedTo(participantID livekit.ParticipantID) bool {
func (p *ParticipantImpl) isSubscribedTo(participantID livekit.ParticipantID) bool {
_, ok := p.subscribedTo.Load(participantID)
return ok
}
@@ -830,7 +830,7 @@ func (p *ParticipantImpl) setupLocalParticipant() {
}
})
p.LocalParticipant.OnTrackUpdated(func(track types.PublishedTrack, onlyIfReady bool) {
p.LocalParticipant.OnPublishedTrackUpdated(func(track types.PublishedTrack, onlyIfReady bool) {
if onlyIfReady && !p.IsReady() {
return
}