mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
feat(video-clip): add video-clip page with video preview + logs
This commit is contained in:
parent
2065ebbee5
commit
42538dd757
11 changed files with 106 additions and 14 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue