2023-04-21 14:55:10 +02:00
|
|
|
|
|
|
|
import { MUserId, MVideoFile, MVideoFullLight } from '@server/types/models'
|
|
|
|
|
|
|
|
export abstract class AbstractJobBuilder {
|
|
|
|
|
|
|
|
abstract createOptimizeOrMergeAudioJobs (options: {
|
|
|
|
video: MVideoFullLight
|
|
|
|
videoFile: MVideoFile
|
|
|
|
isNewVideo: boolean
|
|
|
|
user: MUserId
|
2023-05-02 13:38:00 +02:00
|
|
|
videoFileAlreadyLocked: boolean
|
2023-04-21 14:55:10 +02:00
|
|
|
}): Promise<any>
|
|
|
|
|
|
|
|
abstract createTranscodingJobs (options: {
|
2023-07-11 09:21:13 +02:00
|
|
|
transcodingType: 'hls' | 'webtorrent' | 'web-video' // TODO: remove webtorrent in v7
|
2023-04-21 14:55:10 +02:00
|
|
|
video: MVideoFullLight
|
|
|
|
resolutions: number[]
|
|
|
|
isNewVideo: boolean
|
|
|
|
user: MUserId | null
|
|
|
|
}): Promise<any>
|
|
|
|
}
|