diff options
Diffstat (limited to 'packages/models/src/runners/runner-job-private-payload.model.ts')
-rw-r--r-- | packages/models/src/runners/runner-job-private-payload.model.ts | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/packages/models/src/runners/runner-job-private-payload.model.ts b/packages/models/src/runners/runner-job-private-payload.model.ts new file mode 100644 index 000000000..c1205984e --- /dev/null +++ b/packages/models/src/runners/runner-job-private-payload.model.ts | |||
@@ -0,0 +1,45 @@ | |||
1 | import { VideoStudioTaskPayload } from '../server/index.js' | ||
2 | |||
3 | export type RunnerJobVODPrivatePayload = | ||
4 | RunnerJobVODWebVideoTranscodingPrivatePayload | | ||
5 | RunnerJobVODAudioMergeTranscodingPrivatePayload | | ||
6 | RunnerJobVODHLSTranscodingPrivatePayload | ||
7 | |||
8 | export type RunnerJobPrivatePayload = | ||
9 | RunnerJobVODPrivatePayload | | ||
10 | RunnerJobLiveRTMPHLSTranscodingPrivatePayload | | ||
11 | RunnerJobVideoStudioTranscodingPrivatePayload | ||
12 | |||
13 | // --------------------------------------------------------------------------- | ||
14 | |||
15 | export interface RunnerJobVODWebVideoTranscodingPrivatePayload { | ||
16 | videoUUID: string | ||
17 | isNewVideo: boolean | ||
18 | } | ||
19 | |||
20 | export interface RunnerJobVODAudioMergeTranscodingPrivatePayload { | ||
21 | videoUUID: string | ||
22 | isNewVideo: boolean | ||
23 | } | ||
24 | |||
25 | export interface RunnerJobVODHLSTranscodingPrivatePayload { | ||
26 | videoUUID: string | ||
27 | isNewVideo: boolean | ||
28 | deleteWebVideoFiles: boolean | ||
29 | } | ||
30 | |||
31 | // --------------------------------------------------------------------------- | ||
32 | |||
33 | export interface RunnerJobLiveRTMPHLSTranscodingPrivatePayload { | ||
34 | videoUUID: string | ||
35 | masterPlaylistName: string | ||
36 | outputDirectory: string | ||
37 | sessionId: string | ||
38 | } | ||
39 | |||
40 | // --------------------------------------------------------------------------- | ||
41 | |||
42 | export interface RunnerJobVideoStudioTranscodingPrivatePayload { | ||
43 | videoUUID: string | ||
44 | originalTasks: VideoStudioTaskPayload[] | ||
45 | } | ||