PeerTube_original/server/helpers/custom-validators/video-transcoding.ts
2023-07-11 09:21:13 +02:00

13 lines
343 B
TypeScript

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
}