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
+5
View File
@@ -18,6 +18,7 @@ const (
)
type SubscribedTrackParams struct {
PublisherID string
PublisherIdentity string
SubscriberID string
MediaTrack types.MediaTrack
@@ -55,6 +56,10 @@ func (t *SubscribedTrack) ID() string {
return t.params.DownTrack.ID()
}
func (t *SubscribedTrack) PublisherID() string {
return t.params.PublisherID
}
func (t *SubscribedTrack) PublisherIdentity() string {
return t.params.PublisherIdentity
}