mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
feat(soundbites): add soundbite list and creation forms with audio-clipper component
This commit is contained in:
parent
602654b99b
commit
de19317138
24 changed files with 582 additions and 331 deletions
|
|
@ -101,7 +101,7 @@ class VideoClipsController extends BaseController
|
|||
replace_breadcrumb_params([
|
||||
0 => $this->podcast->title,
|
||||
1 => $this->episode->title,
|
||||
2 => $videoClip->label,
|
||||
2 => $videoClip->title,
|
||||
]);
|
||||
return view('episode/video_clip', $data);
|
||||
}
|
||||
|
|
@ -140,8 +140,8 @@ class VideoClipsController extends BaseController
|
|||
public function attemptCreate(): RedirectResponse
|
||||
{
|
||||
$rules = [
|
||||
'label' => 'required',
|
||||
'start_time' => 'required|numeric',
|
||||
'title' => 'required',
|
||||
'start_time' => 'required|greater_than_equal_to[0]',
|
||||
'duration' => 'required|greater_than[0]',
|
||||
'format' => 'required|in_list[' . implode(',', array_keys(config('MediaClipper')->formats)) . ']',
|
||||
'theme' => 'required|in_list[' . implode(',', array_keys(config('Colors')->themes)) . ']',
|
||||
|
|
@ -163,7 +163,7 @@ class VideoClipsController extends BaseController
|
|||
];
|
||||
|
||||
$videoClip = new VideoClip([
|
||||
'label' => $this->request->getPost('label'),
|
||||
'title' => $this->request->getPost('title'),
|
||||
'start_time' => (float) $this->request->getPost('start_time'),
|
||||
'duration' => (float) $this->request->getPost('duration',),
|
||||
'theme' => $theme,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue