aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/job.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-21 15:58:17 +0100
committerChocobozzz <me@florianbigard.com>2021-01-21 15:58:17 +0100
commit24516aa26a6753517b379cf7b5104c1a24eccad6 (patch)
treea94b561faa63238f8ac69848f6b0379f0ade08a2 /shared/models/server/job.model.ts
parent3b01f4c0ac764ecb70efaadfd939ca868c28769c (diff)
downloadPeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.gz
PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.zst
PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.zip
Refactor transcoding job handlers
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r--shared/models/server/job.model.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts
index 11d90c32f..d16ac1032 100644
--- a/shared/models/server/job.model.ts
+++ b/shared/models/server/job.model.ts
@@ -100,26 +100,26 @@ interface BaseTranscodingPayload {
100 isNewVideo?: boolean 100 isNewVideo?: boolean
101} 101}
102 102
103interface HLSTranscodingPayload extends BaseTranscodingPayload { 103export interface HLSTranscodingPayload extends BaseTranscodingPayload {
104 type: 'hls' 104 type: 'new-resolution-to-hls'
105 isPortraitMode?: boolean 105 isPortraitMode?: boolean
106 resolution: VideoResolution 106 resolution: VideoResolution
107 copyCodecs: boolean 107 copyCodecs: boolean
108} 108}
109 109
110export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { 110export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload {
111 type: 'new-resolution' 111 type: 'new-resolution-to-webtorrent'
112 isPortraitMode?: boolean 112 isPortraitMode?: boolean
113 resolution: VideoResolution 113 resolution: VideoResolution
114} 114}
115 115
116export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { 116export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload {
117 type: 'merge-audio' 117 type: 'merge-audio-to-webtorrent'
118 resolution: VideoResolution 118 resolution: VideoResolution
119} 119}
120 120
121export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { 121export interface OptimizeTranscodingPayload extends BaseTranscodingPayload {
122 type: 'optimize' 122 type: 'optimize-to-webtorrent'
123} 123}
124 124
125export type VideoTranscodingPayload = 125export type VideoTranscodingPayload =