1
0
Fork 0
peertube/server/helpers/custom-validators/video-lives.ts

12 lines
350 B
TypeScript
Raw Normal View History

2022-03-04 07:40:02 -05:00
import { LiveVideoLatencyMode } from '@shared/models'
function isLiveLatencyModeValid (value: any) {
return [ LiveVideoLatencyMode.DEFAULT, LiveVideoLatencyMode.SMALL_LATENCY, LiveVideoLatencyMode.HIGH_LATENCY ].includes(value)
}
// ---------------------------------------------------------------------------
export {
isLiveLatencyModeValid
}