diff options
Diffstat (limited to 'shared/models/runners')
4 files changed, 31 insertions, 4 deletions
diff --git a/shared/models/runners/runner-job-payload.model.ts b/shared/models/runners/runner-job-payload.model.ts index 8f0c17135..9f0db0dc4 100644 --- a/shared/models/runners/runner-job-payload.model.ts +++ b/shared/models/runners/runner-job-payload.model.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | import { VideoStudioTaskPayload } from '../server' | ||
2 | |||
1 | export type RunnerJobVODPayload = | 3 | export type RunnerJobVODPayload = |
2 | RunnerJobVODWebVideoTranscodingPayload | | 4 | RunnerJobVODWebVideoTranscodingPayload | |
3 | RunnerJobVODHLSTranscodingPayload | | 5 | RunnerJobVODHLSTranscodingPayload | |
@@ -5,7 +7,8 @@ export type RunnerJobVODPayload = | |||
5 | 7 | ||
6 | export type RunnerJobPayload = | 8 | export type RunnerJobPayload = |
7 | RunnerJobVODPayload | | 9 | RunnerJobVODPayload | |
8 | RunnerJobLiveRTMPHLSTranscodingPayload | 10 | RunnerJobLiveRTMPHLSTranscodingPayload | |
11 | RunnerJobVideoEditionTranscodingPayload | ||
9 | 12 | ||
10 | // --------------------------------------------------------------------------- | 13 | // --------------------------------------------------------------------------- |
11 | 14 | ||
@@ -43,6 +46,14 @@ export interface RunnerJobVODAudioMergeTranscodingPayload { | |||
43 | } | 46 | } |
44 | } | 47 | } |
45 | 48 | ||
49 | export interface RunnerJobVideoEditionTranscodingPayload { | ||
50 | input: { | ||
51 | videoFileUrl: string | ||
52 | } | ||
53 | |||
54 | tasks: VideoStudioTaskPayload[] | ||
55 | } | ||
56 | |||
46 | // --------------------------------------------------------------------------- | 57 | // --------------------------------------------------------------------------- |
47 | 58 | ||
48 | export function isAudioMergeTranscodingPayload (payload: RunnerJobPayload): payload is RunnerJobVODAudioMergeTranscodingPayload { | 59 | export function isAudioMergeTranscodingPayload (payload: RunnerJobPayload): payload is RunnerJobVODAudioMergeTranscodingPayload { |
diff --git a/shared/models/runners/runner-job-private-payload.model.ts b/shared/models/runners/runner-job-private-payload.model.ts index c1d8d1045..c8fe0a7d8 100644 --- a/shared/models/runners/runner-job-private-payload.model.ts +++ b/shared/models/runners/runner-job-private-payload.model.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | import { VideoStudioTaskPayload } from '../server' | ||
2 | |||
1 | export type RunnerJobVODPrivatePayload = | 3 | export type RunnerJobVODPrivatePayload = |
2 | RunnerJobVODWebVideoTranscodingPrivatePayload | | 4 | RunnerJobVODWebVideoTranscodingPrivatePayload | |
3 | RunnerJobVODAudioMergeTranscodingPrivatePayload | | 5 | RunnerJobVODAudioMergeTranscodingPrivatePayload | |
@@ -5,7 +7,8 @@ export type RunnerJobVODPrivatePayload = | |||
5 | 7 | ||
6 | export type RunnerJobPrivatePayload = | 8 | export type RunnerJobPrivatePayload = |
7 | RunnerJobVODPrivatePayload | | 9 | RunnerJobVODPrivatePayload | |
8 | RunnerJobLiveRTMPHLSTranscodingPrivatePayload | 10 | RunnerJobLiveRTMPHLSTranscodingPrivatePayload | |
11 | RunnerJobVideoEditionTranscodingPrivatePayload | ||
9 | 12 | ||
10 | // --------------------------------------------------------------------------- | 13 | // --------------------------------------------------------------------------- |
11 | 14 | ||
@@ -32,3 +35,10 @@ export interface RunnerJobLiveRTMPHLSTranscodingPrivatePayload { | |||
32 | masterPlaylistName: string | 35 | masterPlaylistName: string |
33 | outputDirectory: string | 36 | outputDirectory: string |
34 | } | 37 | } |
38 | |||
39 | // --------------------------------------------------------------------------- | ||
40 | |||
41 | export interface RunnerJobVideoEditionTranscodingPrivatePayload { | ||
42 | videoUUID: string | ||
43 | originalTasks: VideoStudioTaskPayload[] | ||
44 | } | ||
diff --git a/shared/models/runners/runner-job-success-body.model.ts b/shared/models/runners/runner-job-success-body.model.ts index 223b7552d..17e921f69 100644 --- a/shared/models/runners/runner-job-success-body.model.ts +++ b/shared/models/runners/runner-job-success-body.model.ts | |||
@@ -11,7 +11,8 @@ export type RunnerJobSuccessPayload = | |||
11 | VODWebVideoTranscodingSuccess | | 11 | VODWebVideoTranscodingSuccess | |
12 | VODHLSTranscodingSuccess | | 12 | VODHLSTranscodingSuccess | |
13 | VODAudioMergeTranscodingSuccess | | 13 | VODAudioMergeTranscodingSuccess | |
14 | LiveRTMPHLSTranscodingSuccess | 14 | LiveRTMPHLSTranscodingSuccess | |
15 | VideoEditionTranscodingSuccess | ||
15 | 16 | ||
16 | export interface VODWebVideoTranscodingSuccess { | 17 | export interface VODWebVideoTranscodingSuccess { |
17 | videoFile: Blob | string | 18 | videoFile: Blob | string |
@@ -30,6 +31,10 @@ export interface LiveRTMPHLSTranscodingSuccess { | |||
30 | 31 | ||
31 | } | 32 | } |
32 | 33 | ||
34 | export interface VideoEditionTranscodingSuccess { | ||
35 | videoFile: Blob | string | ||
36 | } | ||
37 | |||
33 | export function isWebVideoOrAudioMergeTranscodingPayloadSuccess ( | 38 | export function isWebVideoOrAudioMergeTranscodingPayloadSuccess ( |
34 | payload: RunnerJobSuccessPayload | 39 | payload: RunnerJobSuccessPayload |
35 | ): payload is VODHLSTranscodingSuccess | VODAudioMergeTranscodingSuccess { | 40 | ): payload is VODHLSTranscodingSuccess | VODAudioMergeTranscodingSuccess { |
diff --git a/shared/models/runners/runner-job-type.type.ts b/shared/models/runners/runner-job-type.type.ts index 36d3b9b25..3b997cb6e 100644 --- a/shared/models/runners/runner-job-type.type.ts +++ b/shared/models/runners/runner-job-type.type.ts | |||
@@ -2,4 +2,5 @@ export type RunnerJobType = | |||
2 | 'vod-web-video-transcoding' | | 2 | 'vod-web-video-transcoding' | |
3 | 'vod-hls-transcoding' | | 3 | 'vod-hls-transcoding' | |
4 | 'vod-audio-merge-transcoding' | | 4 | 'vod-audio-merge-transcoding' | |
5 | 'live-rtmp-hls-transcoding' | 5 | 'live-rtmp-hls-transcoding' | |
6 | 'video-edition-transcoding' | ||