aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/helpers/custom-validators/video-transcoding.ts
blob: 220530de428bb2f3b0a31a7d11742e9bf0ba9806 (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' || value === 'web-video') // TODO: remove webtorrent in v7
}

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

export {
  isValidCreateTranscodingType
}