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











                                                                              
import { exists } from './misc'

function isValidCreateTranscodingType (value: any) {
  return exists(value) &&
    (value === 'hls' || value === 'webtorrent')
}

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

export {
  isValidCreateTranscodingType
}