Skip to content

Commit

Permalink
Allow homarus to use faststart for video conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksha Singh authored and Akanksha Singh committed Sep 8, 2022
1 parent ec118e4 commit 6754f48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Homarus/src/Controller/HomarusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,10 @@ public function convert(Request $request)
try {
$this->cmd->execute($cmd_string, $source);
return (new BinaryFileResponse(
$temp_file_path,
200,
['Content-Type' => $content_type]
$temp_file_path,
200,
['Content-Type' => $content_type]
))->deleteFileAfterSend(true);

} catch (\RuntimeException $e) {
$this->log->error("RuntimeException:", ['exception' => $e]);
return new Response($e->getMessage(), 500);
Expand Down

0 comments on commit 6754f48

Please sign in to comment.