Repository navigation
Add slideshow mode to the live view - #644
Merged
Merged
Conversation
Auto-advance the live grid on a timer: a 1x1 layout cycles through cameras, larger grids cycle through pages. Interval is 5-60s, persisted per browser and mirrored to ?slideshow=<seconds> so wall displays and kiosks can bookmark it. The slideshow pauses during tile reorder, per-tile native fullscreen, the building plan surface, and while the tab is hidden. Manual paging restarts the countdown. Wired into both the HLS/MSE and WebRTC views. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover the useLiveSlideshow timer with a deps-aware preact/hooks shim: page and camera cycling with wrap, interval choice, countdown reset on manual navigation, no reset on same-camera refetch, pause/resume for the caller's pause flag and hidden tabs, the nothing-to-cycle case, and localStorage / ?slideshow= sync. Render LiveSlideshowControl via esbuild and check its labels, pressed state, interval options and callbacks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an AnyCam-style slideshow to the live view. A new toolbar toggle auto-advances the grid on a timer:
?slideshow=<seconds>(?slideshow=0turns it off), so kiosks / wall displays can bookmark e.g./?cols=1&rows=1&slideshow=15.Wired into both
LiveView(HLS/MSE) andWebRTCView. New strings inenandfil; other locales fall back to English.Known limitation
Each slide change tears down and reconnects streams, same as clicking Next, so there's a ~1s load between slides (longer on HLS). Pre-warming the next slide's streams is a possible follow-up.
Test plan
npx jest: 47 suites / 368 tests passtests/liveSlideshow.spec.js: preference parsing, URL override, next-slide/wrap logictests/liveSlideshowHook.spec.js: hook timer behaviour via a deps-awarepreact/hooksshim (page and camera cycling, interval, countdown reset on manual navigation, no reset on same-camera refetch, pause/resume, hidden tab, nothing-to-cycle, storage +?slideshow=sync)tests/liveSlideshowControl.spec.js: control rendered via esbuild; labels,aria-pressed, interval options, callbacksnpx vite buildsucceeds?slideshow=bookmark, pause on reorder/fullscreen tile🤖 Generated with Claude Code