2023-07-31 14:34:36 +02:00
|
|
|
import { WEBSERVER } from '@server/initializers/constants.js'
|
2023-04-21 14:55:10 +02:00
|
|
|
|
|
|
|
export function generateRunnerTranscodingVideoInputFileUrl (jobUUID: string, videoUUID: string) {
|
|
|
|
return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/max-quality'
|
|
|
|
}
|
|
|
|
|
2024-07-23 16:38:51 +02:00
|
|
|
export function generateRunnerTranscodingAudioInputFileUrl (jobUUID: string, videoUUID: string) {
|
|
|
|
return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/max-quality/audio'
|
|
|
|
}
|
|
|
|
|
2023-04-21 14:55:10 +02:00
|
|
|
export function generateRunnerTranscodingVideoPreviewFileUrl (jobUUID: string, videoUUID: string) {
|
|
|
|
return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/previews/max-quality'
|
|
|
|
}
|
2023-05-04 15:29:34 +02:00
|
|
|
|
|
|
|
export function generateRunnerEditionTranscodingVideoInputFileUrl (jobUUID: string, videoUUID: string, filename: string) {
|
|
|
|
return WEBSERVER.URL + '/api/v1/runners/jobs/' + jobUUID + '/files/videos/' + videoUUID + '/studio/task-files/' + filename
|
|
|
|
}
|