diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
commit | 24516aa26a6753517b379cf7b5104c1a24eccad6 (patch) | |
tree | a94b561faa63238f8ac69848f6b0379f0ade08a2 /shared | |
parent | 3b01f4c0ac764ecb70efaadfd939ca868c28769c (diff) | |
download | PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.gz PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.zst PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.zip |
Refactor transcoding job handlers
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/job.model.ts | 10 |
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 | ||
103 | interface HLSTranscodingPayload extends BaseTranscodingPayload { | 103 | export 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 | ||
110 | export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { | 110 | export 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 | ||
116 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { | 116 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { |
117 | type: 'merge-audio' | 117 | type: 'merge-audio-to-webtorrent' |
118 | resolution: VideoResolution | 118 | resolution: VideoResolution |
119 | } | 119 | } |
120 | 120 | ||
121 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { | 121 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { |
122 | type: 'optimize' | 122 | type: 'optimize-to-webtorrent' |
123 | } | 123 | } |
124 | 124 | ||
125 | export type VideoTranscodingPayload = | 125 | export type VideoTranscodingPayload = |