Refactor media track subscriptions

- To enable re-use of common bits
- Add max quality from other nodes
This commit is contained in:
boks1971
2022-01-04 16:40:47 +05:30
parent 995c1e8676
commit 9ca85454ed
10 changed files with 959 additions and 498 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (t *SubscribedTrack) UpdateVideoLayer() {
return
}
if t.subMuted.Get() {
t.MediaTrack().NotifySubscriberMute(t.params.SubscriberID)
t.MediaTrack().NotifySubscriberMaxQuality(t.params.SubscriberID, livekit.VideoQuality_OFF)
return
}
settings, ok := t.settings.Load().(*livekit.UpdateTrackSettings)