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
@@ -219,6 +219,11 @@ class PollStateService
|
||||
'isVotingOpen' => $slide->isVotingOpen(),
|
||||
'isInteractive' => $slide->isInteractive(),
|
||||
'settings' => $slide->getSettings(),
|
||||
// YouTube slides: player URL for the presenter, link for sharing
|
||||
'video' => $slide->isYouTube() && $slide->youtubeEmbedUrl() !== null ? [
|
||||
'embedUrl' => $slide->youtubeEmbedUrl(),
|
||||
'watchUrl' => $slide->youtubeWatchUrl(),
|
||||
] : null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user