aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/runners/runner-urls.ts
blob: a27060b33f38f147cd394d829017667f98b401f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { WEBSERVER } from '@server/initializers/constants'

export function generateRunnerTranscodingVideoInputFileUrl (jobUUID: string, videoUUID: string) {
  return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/max-quality'
}

export function generateRunnerTranscodingVideoPreviewFileUrl (jobUUID: string, videoUUID: string) {
  return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/previews/max-quality'
}

export function generateRunnerEditionTranscodingVideoInputFileUrl (jobUUID: string, videoUUID: string, filename: string) {
  return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/studio/task-files/' + filename
}