aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/lib/runners/runner-urls.ts
blob: 329fb11708478ee348a9b24e2a0e1ca20349f835 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                   
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'
}