Repository navigation
[mobileWallLayout] scrollFeed 3.7: scene wall, stall recovery, decoder release - #823
Merged
Merged
Conversation
…r release Ports scrollFeed 3.1-3.7 onto the 3.0 plugin: - play-on-visibility, ordered loading and the single-column touch layout now also cover the /scenes wall - clips far off screen are unloaded (load at 2 screens, release at 5) - wall videos lose their autoplay attribute so only the observer plays them - a persistent canplay listener and an end-of-clip watchdog restart clips Safari leaves paused or frozen on their last frame - image clips that fail to decode (AV1 in Safari) fall back to their preview - near clips keep their src at registration to cut refetch stalls Review fixes: the eviction re-load skips clips still fetching; a clip released mid-load is freed from the load slot; release saves the current src; the AV1 fallback checks the preview exists, keeps the clip's size, restores the original if the preview fails, and leaves off-screen slides paused; near/far distances come from one number each. Version 3.0 -> 3.7; README and description updated. iOS fix: an in-view clip that kept its src now gets play() at any readyState. iOS Safari stops a paused clip after metadata (networkState idle) until play(), and the old readyState >= 2 gate left those clips blank until scrolled far away and back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request has been mentioned on Stash Forum. There might be relevant details there: |
DogmaDragon
requested changes
Dec 3, 2026
Comment on lines
+3
to
+6
| A scrolling feed of your favorite marker clips, image clips and scene | ||
| previews, designed for private one-handed mobile viewing. Works on the | ||
| Markers, Images and Scenes walls. Just scroll for the next clip. Pairs | ||
| with the preview-cap patch (linked) for clip-length playback. |
Contributor
There was a problem hiding this comment.
Please fix text formattting.
Contributor
There was a problem hiding this comment.
Please fix text formattting.
…scription 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.
Brought my private scrollFeed changes up to date here: the scenes wall now works as a feed too, clips far off screen are unloaded so the phone doesn't run hot, and a few Safari stalls are fixed.
Claude Opus 5.5 (high)
Updates
plugins/mobileWallLayout(display name scrollFeed) from 3.0 to 3.7. Follows #680, #692 and #704. Plugin ID, file names and the forumurl:are unchanged, so existing installs upgrade in place.Behavior (what changes for users)
/scenesin wall view. Grid and list views have no wall videos and are unaffected. On Stash v0.32.0 and later, scene wall videos exist only when wall playback is set to "video".autoplayattribute is removed from wall videos, so a clip whose source is restored off screen no longer starts playing on its own. Only the visibility observer starts playback.canplaystayed paused until scrolled out and back.endedevent; Chrome loops the same files. A 500 ms check restarts an in-view looping clip that sits at its end without moving./image/<id>/imagefails with a decode error, the plugin swaps in/image/<id>/previewat the full file's on-screen size. It swaps only when the preview exists, restores the full file if the preview fails too, and leaves off-screen lightbox slides paused.Implementation notes (open to revision)
IntersectionObservers withrootMarginof_NEAR_SCREENS(2) and_FAR_SCREENS(5) viewport heights: load and release. The near observer is created before the play observer so a clip is queued before the play pass tries to move it to the head of the queue.getBoundingClientRect()against_NEAR_SCREENS × innerHeight, so near clips are never stripped and restored.load()now skips clips whose fetch is still running (networkStateisNETWORK_LOADING).setIntervalthat runs only while a target page is open and is cleared on navigation away.errorlistener ondocument, because mediaerrorevents do not bubble. It checks the preview with a one-byte range request before swapping. It sets the element's width and height to the full file's pixel size, because Stash's lightbox scales the slide from the full file's dimensions. It is not limited to the walls or to touch devices, since the lightbox and image page render the full file. It could be split into its own plugin if preferred.SceneWallPanel(react-photo-gallery), so the existing.wall-itemlayout rules cover it. The CSS also carries rules for the older.wallmarkup (.wall-item-container,.wall-item-anchor, the 450px / 253px caps); on current Stash these match nothing on the three target pages and could be dropped.@media (pointer: coarse). The video behaviour is not gated by device, as in 3.0.Testing
node --check plugins/mobileWallLayout/mobileWallLayout.jspasses.node ./validate.js --cipasses ("Validation passed!").stashapp/stash:development, v0.32.0-12) in Docker with synthetic ffmpeg clips: 40 scenes, 40 markers, 13 image clips (3 AV1, one corrupted so it fails to decode). Driven with Playwright's headless Chromium at phone size (390×844, touch,pointer: coarse) and desktop size (1440×900), with and without a 1.5 Mbps / 150 ms network throttle, on the Scenes, Markers and Images walls and the lightbox. Measured per videoreadyState,networkState,paused,preloadandautoplay, plus video request counts and concurrency. The scene wall's 20 to 60 per page switch was also run in Playwright's WebKit at phone size.load()restarted the fetch of every in-view clip that was still loading at first render (up to 13 restarts per wall). Now none. On the throttled desktop markers wall, three in-view clips were still blank after 12 s before the fix; none after.srcby React, then released again was restored with its oldsrc. Now the current one.readyState1 withnetworkStateidle and nothing buffered after 21 s: iOS Safari stops a paused clip after its metadata untilplay()is called, and the plugin waited forreadyState2 before callingplay(). In-view clips that have a source now getplay()at anyreadyState; with that build the same switch loaded them straight away on the iPhone. Desktop WebKit and Chromium never showed the stall.Limits
autoplayand keep the browser's defaultpreload) might never start was not reproduced in Chromium, where every in-view clip played in all 24 first-render runs. It was real on iOS Safari and is fixed (see Testing).LLM-assisted contribution
Written with Claude Code (an LLM) under the author's direction, per this repository's rule for LLM-assisted contributions.
The author specified the behaviour, tested this build on their phone, and looked over the code. The author takes responsibility for the code.
🤖 Generated with Claude Code