mirror of https://github.com/Chocobozzz/PeerTube
12 lines
350 B
TypeScript
12 lines
350 B
TypeScript
|
import { LiveVideoLatencyMode } from '@shared/models'
|
||
|
|
||
|
function isLiveLatencyModeValid (value: any) {
|
||
|
return [ LiveVideoLatencyMode.DEFAULT, LiveVideoLatencyMode.SMALL_LATENCY, LiveVideoLatencyMode.HIGH_LATENCY ].includes(value)
|
||
|
}
|
||
|
|
||
|
// ---------------------------------------------------------------------------
|
||
|
|
||
|
export {
|
||
|
isLiveLatencyModeValid
|
||
|
}
|