Add embeddable slides and pause mode
Every slide gets an embed URL /e/{key}/{id} for presentation software
like Canva. The page goes live while it is visible, keeps itself live
with heartbeats and pauses when it disappears; stale embeds are paused
lazily. The embed key is separate from the admin token and only allows
showing, activating, pausing and voting controls of that slide.
Participants see a pause page while no slide is live. The presenter
can pause (P) and resume the paused slide with the arrow keys; the
dashboard has a pause button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58145e9753
commit
07a292d109
19 files changed
+1116
-68
No files matched your search
@@ -40,6 +40,15 @@ return [
|
||||
'recoverPerHour' => (int)env('THROTTLE_RECOVER_PER_HOUR', 5),
|
||||
],
|
||||
'pollIntervalMs' => (int)env('POLL_INTERVAL_MS', 2000),
|
||||
// Slides embedded in other presentation software (/e/{key}/{slide}, e.g. Canva).
|
||||
'embed' => [
|
||||
// A visible embedded slide reports every N seconds that it is still on screen ...
|
||||
'heartbeatSeconds' => (int)env('EMBED_HEARTBEAT_SECONDS', 5),
|
||||
// ... without a report for this long, the poll is paused (presentation moved on / closed).
|
||||
'timeoutSeconds' => (int)env('EMBED_TIMEOUT_SECONDS', 20),
|
||||
// CSP frame-ancestors of the embed pages ('*' = any site; the URL itself is the secret).
|
||||
'frameAncestors' => (string)env('EMBED_FRAME_ANCESTORS', '*'),
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user