]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/lib/transcoding/shared/job-builders/abstract-job-builder.ts
Support studio transcoding in peertube runner
[github/Chocobozzz/PeerTube.git] / server / lib / transcoding / shared / job-builders / abstract-job-builder.ts
1
2 import { MUserId, MVideoFile, MVideoFullLight } from '@server/types/models'
3
4 export abstract class AbstractJobBuilder {
5
6 abstract createOptimizeOrMergeAudioJobs (options: {
7 video: MVideoFullLight
8 videoFile: MVideoFile
9 isNewVideo: boolean
10 user: MUserId
11 videoFileAlreadyLocked: boolean
12 }): Promise<any>
13
14 abstract createTranscodingJobs (options: {
15 transcodingType: 'hls' | 'webtorrent'
16 video: MVideoFullLight
17 resolutions: number[]
18 isNewVideo: boolean
19 user: MUserId | null
20 }): Promise<any>
21 }