Scoped speaker update (#280)

* Scoped speaker update

Include only participants a participant is subscribed to.

NOTE: Not doing this for active speaker changes for Protocol < 3.

* correct comment spelling
This commit is contained in:
Raja Subramanian
2021-12-23 09:13:49 +05:30
committed by GitHub
parent 857ff7fae7
commit 42a9b6657d
6 changed files with 106 additions and 19 deletions
+1
View File
@@ -226,6 +226,7 @@ func (t *MediaTrack) AddSubscriber(sub types.Participant) error {
return err
}
subTrack := NewSubscribedTrack(SubscribedTrackParams{
PublisherID: t.params.ParticipantID,
PublisherIdentity: t.params.ParticipantIdentity,
SubscriberID: sub.ID(),
MediaTrack: t,