feat(video-clip): add video-clip page with video preview + logs

This commit is contained in:
Yassine Doghri 2021-12-23 16:56:06 +00:00
commit 42538dd757
11 changed files with 106 additions and 14 deletions

View file

@ -87,6 +87,24 @@ class VideoClipsController extends BaseController
return view('episode/video_clips_list', $data);
}
public function view($videoClipId): string
{
$videoClip = (new ClipModel())->getVideoClipById((int) $videoClipId);
$data = [
'podcast' => $this->podcast,
'episode' => $this->episode,
'videoClip' => $videoClip,
];
replace_breadcrumb_params([
0 => $this->podcast->title,
1 => $this->episode->title,
2 => $videoClip->label,
]);
return view('episode/video_clip', $data);
}
public function generate(): string
{
helper('form');