Check for multiple layers for managed track. (#3622)

The previous check was checking only for simulcast and would have made a
screen share track published with multiple layers using SVC as
unmanaged.
This commit is contained in:
Raja Subramanian
2025-04-24 10:02:38 +05:30
committed by GitHub
parent 4955ebe423
commit 34a2e2c107
3 changed files with 22 additions and 22 deletions
+5 -5
View File
@@ -273,10 +273,10 @@ func (s *StreamAllocator) SetSendSideBWEInterceptor(sendSideBWEInterceptor cc.Ba
}
type AddTrackParams struct {
Source livekit.TrackSource
Priority uint8
IsSimulcast bool
PublisherID livekit.ParticipantID
Source livekit.TrackSource
Priority uint8
IsMultiLayered bool
PublisherID livekit.ParticipantID
}
func (s *StreamAllocator) AddTrack(downTrack *sfu.DownTrack, params AddTrackParams) {
@@ -284,7 +284,7 @@ func (s *StreamAllocator) AddTrack(downTrack *sfu.DownTrack, params AddTrackPara
return
}
track := NewTrack(downTrack, params.Source, params.IsSimulcast, params.PublisherID, s.params.Logger)
track := NewTrack(downTrack, params.Source, params.IsMultiLayered, params.PublisherID, s.params.Logger)
track.SetPriority(params.Priority)
trackID := livekit.TrackID(downTrack.ID())