Revert "Temporary change: use pre-defined rids" (#3769)

* Revert "Temporary change: use pre-defined rids (#3767)"

This reverts commit d11da5f5fa.

* clean up

* add test and simplify

* clean up
This commit is contained in:
Raja Subramanian
2025-06-30 07:34:58 +05:30
committed by GitHub
parent 8197438e5f
commit c69f1aae87
9 changed files with 44 additions and 24 deletions
+14
View File
@@ -499,6 +499,20 @@ func TestGetSpatialLayerForRid(t *testing.T) {
FullResolution: InvalidLayerSpatial,
},
},
{
"layers - no rid",
&livekit.TrackInfo{
Layers: []*livekit.VideoLayer{
{Quality: livekit.VideoQuality_LOW, SpatialLayer: 0},
{Quality: livekit.VideoQuality_MEDIUM, SpatialLayer: 1},
},
},
map[string]int32{
QuarterResolution: 0,
HalfResolution: 0,
FullResolution: 0,
},
},
}
for _, test := range tests {