Chocobozzz/PeerTube

View on GitHub
server/core/helpers/custom-validators/video-lives.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { LiveVideoLatencyMode } from '@peertube/peertube-models'

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

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

export {
  isLiveLatencyModeValid
}