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:
parent
3b01f4c0ac
commit
24516aa26a
8 changed files with 165 additions and 94 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue