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

13 lines
285 B
TypeScript
Raw Normal View History

2021-11-18 08:35:08 -05:00
import { exists } from './misc'
function isValidCreateTranscodingType (value: any) {
return exists(value) &&
(value === 'hls' || value === 'webtorrent')
}
// ---------------------------------------------------------------------------
export {
isValidCreateTranscodingType
}