12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
import { LiveVideoLatencyMode } from '@peertube/peertube-models'
|
|
|
|
function isLiveLatencyModeValid (value: any) {
|
|
return [ LiveVideoLatencyMode.DEFAULT, LiveVideoLatencyMode.SMALL_LATENCY, LiveVideoLatencyMode.HIGH_LATENCY ].includes(value)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
isLiveLatencyModeValid
|
|
}
|