mirror of
https://github.com/livekit/livekit.git
synced 2026-05-15 09:36:03 +00:00
Reinstating a function used by cloud (#768)
This commit is contained in:
@@ -675,3 +675,14 @@ func (t *MediaTrackReceiver) OnSubscribedMaxQualityChange(f func(trackID livekit
|
||||
}
|
||||
|
||||
// ---------------------------
|
||||
|
||||
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