move VideoQualityToRID to mediatrackreceiver (#324)
Co-authored-by: cnderrauber <zengjie9004@gmail.com>
This commit is contained in:
co-authored by
cnderrauber
parent
1bc28240f8
commit
4989539aaa
@@ -379,3 +379,14 @@ func SpatialLayerForQuality(quality livekit.VideoQuality) int32 {
|
|||||||
return -1
|
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