13 lines
346 B
TypeScript
13 lines
346 B
TypeScript
|
import { exists } from './misc.js'
|
||
|
|
||
|
function isValidCreateTranscodingType (value: any) {
|
||
|
return exists(value) &&
|
||
|
(value === 'hls' || value === 'webtorrent' || value === 'web-video') // TODO: remove webtorrent in v7
|
||
|
}
|
||
|
|
||
|
// ---------------------------------------------------------------------------
|
||
|
|
||
|
export {
|
||
|
isValidCreateTranscodingType
|
||
|
}
|