Video fitted poster frame (declared poster slot) - #6031
Draft
lukemelia wants to merge 6 commits into
Draft
Conversation
The video family declares a poster screenshot slot whose capture-only component decodes one frame — an exact timestamp derived only from the file's duration (one second in, clamped to the middle of shorter clips) — and cover-crops it into a static canvas. The <video> element never enters the DOM, so nothing animates between settle and shot and unchanged bytes byte-hash to the same poster across reindexes; readiness flows through the data-screenshot-pending contract. jpeg output (a photographic frame), keyBy 'file-content', useAsThumbnail routing it to the fitted cell through the view model's thumbnail seam. Part of CS-12573. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ot' into cs-12573-video-fitted-poster-frame-poster-slot
Contributor
Host Test Results 1 files ±0 1 suites ±0 2h 4m 57s ⏱️ + 3m 39s Results for commit d1d1a4f. ± Comparison against earlier commit ce06c1c. Realm Server Test Results 1 files ±0 202 suites ±0 1h 9m 16s ⏱️ +23s Results for commit d1d1a4f. ± Comparison against earlier commit ce06c1c. For more details on these errors, see this check. |
…ot' into cs-12573-video-fitted-poster-frame-poster-slot
…ot' into cs-12573-video-fitted-poster-frame-poster-slot
…ot' into cs-12573-video-fitted-poster-frame-poster-slot
…ot' into cs-12573-video-fitted-poster-frame-poster-slot
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.
What this does
Stacked on #6030 (Office posters).
VideoDef(MP4/WebM/MOV families inherit it) declares aposterscreenshot slot (170×250 @ dsf 2,type: 'jpeg',keyBy: 'file-content',useAsThumbnail). The capture-only component (file-formats/video-captures) seeks a deterministic timestamp — one second in, clamped to the middle of shorter clips, derived only from the file's own duration — draws the frame cover-cropped into a static canvas, and signals readiness viadata-screenshot-pending.<video>element never enters the DOM (nothing animates between settle and shot), one draw into a static canvas — so unchanged bytes byte-hash to the same poster across reindexes.Test plan
Realm-server e2e (extends the file-capture suite): writes the licensed
webm-simple.webmfixture (VP8/9 decodes in every Chromium build), asserts the jpeg poster manifest entry and that the prerendered fitted HTML embeds the durable poster URL. CI-validated (the cached-fixture suite doesn't run locally).🤖 Generated with Claude Code