perf(api): add HTTP range requests on media sources #9

Merged
dylan merged 9 commits from perf/incremental-video-loading into master 2026-07-25 11:06:40 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 40c7a6bae5 - Show all commits

View File

@@ -30,7 +30,7 @@ public class MediaController {
public ResponseEntity<APIResponse<UUIDResponse>> compress(
@RequestParam("file")MultipartFile file,
@Valid @ModelAttribute ClipOptions options
) throws IOException, InterruptedException {
) throws IOException {
Job job = mediaService.compress(file, options);
return ResponseEntity.ok(new APIResponse<>(
SUCCESS,

View File

@@ -93,7 +93,7 @@ public class MediaService {
);
}).exceptionally(ex -> {
job.setState(JobState.FAILED);
job.setErrorOutput(ex.getMessage());
job.setErrorOutput("Compression job failed");
logger.error("Compression job with UUID {} failed due to: {}", job.getUuid(), ex.getMessage());
return null;
});