aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/helpers/custom-validators/video-lives.ts
blob: 69d08ae688fd6aabc1e16c3b1df9988e2c977f44 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                                                
import { LiveVideoLatencyMode } from '@shared/models'

function isLiveLatencyModeValid (value: any) {
  return [ LiveVideoLatencyMode.DEFAULT, LiveVideoLatencyMode.SMALL_LATENCY, LiveVideoLatencyMode.HIGH_LATENCY ].includes(value)
}

// ---------------------------------------------------------------------------

export {
  isLiveLatencyModeValid
}