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

13 lines
346 B
TypeScript
Raw Normal View History

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