aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/runners/runner-job-private-payload.model.ts
diff options
context:
space:
mode:
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.ts45
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 @@
1import { VideoStudioTaskPayload } from '../server/index.js'
2
3export type RunnerJobVODPrivatePayload =
4 RunnerJobVODWebVideoTranscodingPrivatePayload |
5 RunnerJobVODAudioMergeTranscodingPrivatePayload |
6 RunnerJobVODHLSTranscodingPrivatePayload
7
8export type RunnerJobPrivatePayload =
9 RunnerJobVODPrivatePayload |
10 RunnerJobLiveRTMPHLSTranscodingPrivatePayload |
11 RunnerJobVideoStudioTranscodingPrivatePayload
12
13// ---------------------------------------------------------------------------
14
15export interface RunnerJobVODWebVideoTranscodingPrivatePayload {
16 videoUUID: string
17 isNewVideo: boolean
18}
19
20export interface RunnerJobVODAudioMergeTranscodingPrivatePayload {
21 videoUUID: string
22 isNewVideo: boolean
23}
24
25export interface RunnerJobVODHLSTranscodingPrivatePayload {
26 videoUUID: string
27 isNewVideo: boolean
28 deleteWebVideoFiles: boolean
29}
30
31// ---------------------------------------------------------------------------
32
33export interface RunnerJobLiveRTMPHLSTranscodingPrivatePayload {
34 videoUUID: string
35 masterPlaylistName: string
36 outputDirectory: string
37 sessionId: string
38}
39
40// ---------------------------------------------------------------------------
41
42export interface RunnerJobVideoStudioTranscodingPrivatePayload {
43 videoUUID: string
44 originalTasks: VideoStudioTaskPayload[]
45}