1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Refactor transcoding job handlers

This commit is contained in:
Chocobozzz 2021-01-21 15:58:17 +01:00
parent 3b01f4c0ac
commit 24516aa26a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 165 additions and 94 deletions

View file

@ -47,7 +47,7 @@ async function run () {
for (const resolution of resolutionsEnabled) {
dataInput.push({
type: 'hls',
type: 'new-resolution-to-hls',
videoUUID: video.uuid,
resolution,
isPortraitMode: false,
@ -56,14 +56,14 @@ async function run () {
}
} else if (program.resolution !== undefined) {
dataInput.push({
type: 'new-resolution' as 'new-resolution',
type: 'new-resolution-to-webtorrent',
videoUUID: video.uuid,
isNewVideo: false,
resolution: program.resolution
})
} else {
dataInput.push({
type: 'optimize' as 'optimize',
type: 'optimize-to-webtorrent',
videoUUID: video.uuid,
isNewVideo: false
})