1
0
Fork 0
peertube/shared/models/runners/runner-job-private-payload.model.ts
Chocobozzz 0c9668f779 Implement remote runner jobs in server
Move ffmpeg functions to @shared
2023-05-09 08:57:34 +02:00

34 lines
965 B
TypeScript

export type RunnerJobVODPrivatePayload =
RunnerJobVODWebVideoTranscodingPrivatePayload |
RunnerJobVODAudioMergeTranscodingPrivatePayload |
RunnerJobVODHLSTranscodingPrivatePayload
export type RunnerJobPrivatePayload =
RunnerJobVODPrivatePayload |
RunnerJobLiveRTMPHLSTranscodingPrivatePayload
// ---------------------------------------------------------------------------
export interface RunnerJobVODWebVideoTranscodingPrivatePayload {
videoUUID: string
isNewVideo: boolean
}
export interface RunnerJobVODAudioMergeTranscodingPrivatePayload {
videoUUID: string
isNewVideo: boolean
}
export interface RunnerJobVODHLSTranscodingPrivatePayload {
videoUUID: string
isNewVideo: boolean
deleteWebVideoFiles: boolean
}
// ---------------------------------------------------------------------------
export interface RunnerJobLiveRTMPHLSTranscodingPrivatePayload {
videoUUID: string
masterPlaylistName: string
outputDirectory: string
}