PeerTube/server/helpers/custom-validators/video-transcoding.ts

13 lines
343 B
TypeScript
Raw Normal View History

2021-11-18 07:35:08 -06:00
import { exists } from './misc'
function isValidCreateTranscodingType (value: any) {
return exists(value) &&
(value === 'hls' || value === 'webtorrent' || value === 'web-video') // TODO: remove webtorrent in v7
2021-11-18 07:35:08 -06:00
}
// ---------------------------------------------------------------------------
export {
isValidCreateTranscodingType
}