Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Reviewed head Verdict: changes needed.
Verification: narrow benchmark typecheck and both JavaScript syntax checks passed. Auth, URL restrictions and sanitized saved results passed independent mocked checks. A shifted-timeline B-frame fixture decoded to the same frame MD5 before and after remuxing. The recorded 20 attempts reconcile to 13 successes and seven failures. Seven of eight required Verify jobs passed; Auth E2E remains in progress. Limits: the retained base image contains helper implementations absent from this PR, so their network behavior and error sanitization could not be independently inspected. The final startup correction has not been tested on Cloudflare. |
Problem / Motivation
HD frame extraction can fail when YouTube rejects Worker-generated playback tokens. We needed to test whether a container-generated session could support Worker HD fetching and Cloudflare Media decoding, and measure the cost of first requests and subsequent seeks.
What changed
Adds an isolated, authenticated benchmark for two videos, with a 90-second session cache tied to the dedicated proxy route. Records stage timings, verifies 1920×1080 JPEGs, and preserves sanitized results, including failures. The streaming dependency is pinned separately from production.
%%{init: {"themeVariables": {"sequenceNumberColor": "#ffffff", "signalColor": "#4b5563", "actorBkg": "#f3f4f6", "actorTextColor": "#111827"}}}%% sequenceDiagram autonumber participant W as Benchmark Worker participant C as Session container participant Y as YouTube via proxy participant M as Cloudflare Media W->>C: Create session on first request C-->>W: Attested playback session W->>Y: Fetch HD using new or cached session W->>M: Decode short video clips M-->>W: 1080p framesThe container creates sessions; the Worker fetches media and passes clips to Media.
Tests
Deployment notes
Experimental benchmark only. Production is unchanged; temporary resources and secrets were removed. Rerunning requires the retained container base image. The final startup-wait correction passed local validation but has not been validated on Cloudflare. Full evidence and limitations are in
platform/benchmarks/frame-playback/hybrid/README.md.