Slides: clip review fixes: disk cache, poster limit, description, steps
A video from a store that cannot seek is read once into a 1 GiB LRU cache on disk (clipcache.go), its hash checked against its ref, and every range is served from that file; nothing holds a whole video in memory. Presenting windows warm clips one at a time, streaming and dropping each body, and stop at 300 MiB; no slide waits for them. A poster is at most 4 MiB at registration (poster_too_large), drawn as WebP at 0.85 and checked before upload (clip-poster.mjs). A clip block takes the image's description control, and its poster's text in HTML and the PDF is the block's, as a picture's is. Play-through hides a loop or once clip until its step; only a press clip keeps its poster.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 files changed,
+816
−146
docs/api.md+10 −8fixtures/clip-poster.mjs+62 −0fixtures/play-through.mjs+3 −2fixtures/play-through.test.mjs+35 −0fixtures/talk-store.mjs+40 −10fixtures/talk-store.test.mjs+73 −0fixtures/uploads.mjs+5 −50fixtures/uploads.test.mjs+13 −0internal/slides/assets.go+43 −9internal/slides/clipcache.go+195 −0internal/slides/clipcache_test.go+79 −0internal/slides/clips.go+51 −36internal/slides/config.go+5 −0internal/slides/credits/assets.json+2 −2internal/slides/handlers.go+6 −0internal/slides/layout/blocks.go+8 −2internal/slides/render/render.go+9 −3internal/slides/static/{editor.0ab3dbd199db90f3.js => editor.b888c75c114f9ea3.js}+18 −18internal/slides/static/presenter.2ea1ee79c6346122.js+0 −5internal/slides/static/presenter.e325871d9ceea5a4.js+5 −0internal/slides/templates/editor.html+2 −1internal/slidestest/clips_browser_test.go+8 −0internal/slidestest/clips_test.go+144 −0
docs/api.mdLoading diff…
fixtures/clip-poster.mjsLoading diff…
fixtures/play-through.mjsLoading diff…
fixtures/play-through.test.mjsLoading diff…
fixtures/talk-store.mjsLoading diff…
fixtures/talk-store.test.mjsLoading diff…
fixtures/uploads.mjsLoading diff…
fixtures/uploads.test.mjsLoading diff…
internal/slides/assets.goLoading diff…
internal/slides/clipcache.goLoading diff…
internal/slides/clipcache_test.goLoading diff…
internal/slides/clips.goLoading diff…
internal/slides/config.goLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/handlers.goLoading diff…
internal/slides/layout/blocks.goLoading diff…
internal/slides/render/render.goLoading diff…
internal/slides/static/{editor.0ab3dbd199db90f3.js => editor.b888c75c114f9ea3.js}Loading diff…
internal/slides/static/presenter.2ea1ee79c6346122.jsLoading diff…
internal/slides/static/presenter.e325871d9ceea5a4.jsLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/clips_browser_test.goLoading diff…
internal/slidestest/clips_test.goLoading diff…