mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to run transcoding jobs
This commit is contained in:
parent
b46cf4b920
commit
ad5db1044c
54 changed files with 715 additions and 103 deletions
12
server/helpers/custom-validators/video-transcoding.ts
Normal file
12
server/helpers/custom-validators/video-transcoding.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { exists } from './misc'
|
||||
|
||||
function isValidCreateTranscodingType (value: any) {
|
||||
return exists(value) &&
|
||||
(value === 'hls' || value === 'webtorrent')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isValidCreateTranscodingType
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue