Refactor media track subscriptions (#314)
* Refactor media track subscriptions - To enable re-use of common bits - Add max quality from other nodes * Lock close handlers slice * Reverting multiple on close handlers of downtrack, unclear if it is needed yet * Make Logger a pointer * audio level in MediaTrack like remote media track * Cleanup * Add a no subscribers callback * Add method to update subscribed quality from another node * loss proxying from remote node * Address comments from David * create subscriber node quality map
This commit is contained in:
@@ -789,6 +789,14 @@ func (p *ParticipantImpl) SubscriptionPermissionUpdate(publisherID livekit.Parti
|
||||
}
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) UpdateSubscribedQuality(nodeID string, trackID livekit.TrackID, maxQuality livekit.VideoQuality) error {
|
||||
return p.uptrackManager.UpdateSubscribedQuality(nodeID, trackID, maxQuality)
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) UpdateMediaLoss(nodeID string, trackID livekit.TrackID, fractionalLoss uint32) error {
|
||||
return p.uptrackManager.UpdateMediaLoss(nodeID, trackID, fractionalLoss)
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) setupUptrackManager() {
|
||||
p.uptrackManager = NewUptrackManager(UptrackManagerParams{
|
||||
Identity: p.params.Identity,
|
||||
|
||||
Reference in New Issue
Block a user