Add YouTube video slide type
Admins paste a YouTube link (watch, youtu.be, shorts, live, embed). The link is checked via oEmbed on save and with a "check link" button (not found / not embeddable is rejected, unreachable saves with a warning). Start time can be entered or is taken from the link's timecode; autoplay is optional. The presenter embeds the video via youtube-nocookie.com; participants get the link plus a share button (Web Share API, falls back to copying). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
93aeae1884
commit
1c509e31c2
14 files changed
+972
-24
No files matched your search
@@ -63,6 +63,8 @@ return function (RouteBuilder $routes): void {
|
||||
->setPatterns($token)->setPass(['id'])->setMethods(['POST']);
|
||||
$admin->connect('/slides/reorder', 'Slides::reorder', ['_name' => 'slides:reorder'])
|
||||
->setPatterns($token)->setMethods(['POST']);
|
||||
$admin->connect('/slides/youtube-check', 'Slides::youtubeCheck', ['_name' => 'slides:youtube-check'])
|
||||
->setPatterns($token)->setMethods(['POST']);
|
||||
$admin->connect('/slides/{id}/reset', 'Slides::reset', ['_name' => 'slides:reset'])
|
||||
->setPatterns($token)->setPass(['id'])->setMethods(['POST']);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user