Skip to content
Snippets Groups Projects
Commit ac6ddfc4 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

style(video-clips): rename temp files to be easily identified

parent dff12087
No related branches found
No related tags found
2 merge requests!160WIP:Feat/social interact,!150fix(ux): enhance user experience
Pipeline #1222 passed
......@@ -96,7 +96,7 @@ class VideoClipper
$this->videoClipFilePath = "podcasts/{$this->episode->podcast->handle}/{$this->episode->slug}-clip-{$this->start}-to-{$this->end}-{$this->format}-{$this->theme}.mp4";
// Temporary files to generate clip
$tempFile = tempnam(WRITEPATH . 'temp', "{$this->episode->slug}-soundbite-{$this->start}-to-{$this->end}");
$tempFile = tempnam(WRITEPATH . 'temp', "{$this->episode->slug}-{$this->start}-{$this->end}");
if (! $tempFile) {
throw new Exception(
......@@ -105,9 +105,9 @@ class VideoClipper
}
$this->tempFileOutput = $tempFile;
$this->soundbiteOutput = $tempFile . '.mp3';
$this->subtitlesClipOutput = $tempFile . '.srt';
$this->videoClipBgOutput = $tempFile . '.png';
$this->soundbiteOutput = $tempFile . '-soundbite.mp3';
$this->subtitlesClipOutput = $tempFile . '-subtitle.srt';
$this->videoClipBgOutput = $tempFile . '-bg.png';
}
public function soundbite(): void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment