mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 19:52:11 +00:00
move VideoQualityToRID to mediatrackreceiver (#324)
Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
@@ -379,3 +379,14 @@ func SpatialLayerForQuality(quality livekit.VideoQuality) int32 {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
||||
func VideoQualityToRID(q livekit.VideoQuality) string {
|
||||
switch q {
|
||||
case livekit.VideoQuality_HIGH:
|
||||
return sfu.FullResolution
|
||||
case livekit.VideoQuality_MEDIUM:
|
||||
return sfu.HalfResolution
|
||||
default:
|
||||
return sfu.QuarterResolution
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user