Set and use rid/spatial layer in TrackInfo. (#3724)

* Set and use rid/spatial layer in TrackInfo.

* test
This commit is contained in:
Raja Subramanian
2025-06-12 23:22:11 -07:00
committed by GitHub
parent a9e2911645
commit 670f927ff6
11 changed files with 275 additions and 36 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
if !wr.DetermineReceiver(codec) {
if t.onSubscriberMaxQualityChange != nil {
go func() {
spatial := buffer.VideoQualityToSpatialLayer(livekit.VideoQuality_HIGH, t.params.MediaTrack.ToProto())
spatial := buffer.GetSpatialLayerForVideoQuality(livekit.VideoQuality_HIGH, t.params.MediaTrack.ToProto())
t.onSubscriberMaxQualityChange(downTrack.SubscriberID(), mime.NormalizeMimeType(codec.MimeType), spatial)
}()
}