Chocobozzz/PeerTube

View on GitHub
server/core/helpers/custom-validators/video-transcoding.ts

Summary

Maintainability
A
0 mins
Test Coverage
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
}