feat(android): viewer autoplay slideshow (spec 062) #1234
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/062-viewer-autoplay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds an autoplay slideshow started from the media viewer: play glyph in the viewer top bar opens the shared interval picker (2/3/5/8/10 s, default 5), then the shared AlbumSlideshow engine runs over the current item list forward from the current page — photos advance on the interval, videos on local ExoPlayer STATE_ENDED when not casting and on receiver terminal-idle when casting (session loss falls back to local, never stops the run). The run drives only pager navigation, so cast keeps riding the existing settledPage→LOAD pipeline with no duplicate LOADs; crop-mirror stays untouched. Controls reuse the album mini player (pause/resume/next/prev/stop), the run ends after the last item, and leaving the viewer stops it. Removes the album auto-start of #1228 (shouldAutoStartSlideshow + its LaunchedEffect + its tests) while keeping the manual 'Afspil album på TV' action, mini player, interval dialog and AlbumSlideshow as the shared engine. Verified: ./gradlew :app:testDebugUnitTest :app:assembleDebug — 499 tests, 0 failures (9 new ViewerSlideshowTest cases), build green.