diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-01 11:16:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-01 11:27:38 +0100 |
commit | 0f11ec8dd32b50897c18588db948e96cf0fc2c70 (patch) | |
tree | 49be9328b4dd5ac8d989ccbe157f494d85246618 /shared | |
parent | 3e8c3fcdb063e2d8f4b3ba04fdcdeda588538751 (diff) | |
download | PeerTube-0f11ec8dd32b50897c18588db948e96cf0fc2c70.tar.gz PeerTube-0f11ec8dd32b50897c18588db948e96cf0fc2c70.tar.zst PeerTube-0f11ec8dd32b50897c18588db948e96cf0fc2c70.zip |
Prevent HLS transcoding after webtorrent transcoding
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/job.model.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 8a69d11fa..1519d1c3e 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -113,11 +113,12 @@ export interface HLSTranscodingPayload extends BaseTranscodingPayload { | |||
113 | isMaxQuality: boolean | 113 | isMaxQuality: boolean |
114 | } | 114 | } |
115 | 115 | ||
116 | export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload { | 116 | export interface NewWebTorrentResolutionTranscodingPayload extends BaseTranscodingPayload { |
117 | type: 'new-resolution-to-webtorrent' | 117 | type: 'new-resolution-to-webtorrent' |
118 | resolution: VideoResolution | 118 | resolution: VideoResolution |
119 | 119 | ||
120 | hasAudio: boolean | 120 | hasAudio: boolean |
121 | createHLSIfNeeded: boolean | ||
121 | 122 | ||
122 | isPortraitMode?: boolean | 123 | isPortraitMode?: boolean |
123 | } | 124 | } |
@@ -125,6 +126,7 @@ export interface NewResolutionTranscodingPayload extends BaseTranscodingPayload | |||
125 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { | 126 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { |
126 | type: 'merge-audio-to-webtorrent' | 127 | type: 'merge-audio-to-webtorrent' |
127 | resolution: VideoResolution | 128 | resolution: VideoResolution |
129 | createHLSIfNeeded: true | ||
128 | } | 130 | } |
129 | 131 | ||
130 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { | 132 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { |
@@ -133,7 +135,7 @@ export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { | |||
133 | 135 | ||
134 | export type VideoTranscodingPayload = | 136 | export type VideoTranscodingPayload = |
135 | HLSTranscodingPayload | 137 | HLSTranscodingPayload |
136 | | NewResolutionTranscodingPayload | 138 | | NewWebTorrentResolutionTranscodingPayload |
137 | | OptimizeTranscodingPayload | 139 | | OptimizeTranscodingPayload |
138 | | MergeAudioTranscodingPayload | 140 | | MergeAudioTranscodingPayload |
139 | 141 | ||