Skip to content

Why can a review page play a video but not save its comparison screenshot?

Treat video playback and canvas pixel export as separate permissions. A browser may display a remote video while refusing to read its drawn pixels through a canvas. Check the media request mode and the source server's authorized cross-origin policy. Do not disable security, proxy private assets without permission or expose a signed URL simply to make a review screenshot save successfully.

REVIEW AND HANDOFF: REPRODUCIBLE EVIDENCE PACKAGESAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial worksheet excerpt: Playback; Canvas export; Authorized alternative. See the complete table and sources below.
Editorial worksheet excerpt: Playback; Canvas export; Authorized alternative. See the complete table and sources below.

Separate the evidence from the decision

Canvas tainting protects data drawn from another origin without the required permission. A visible picture is therefore not proof that toBlob, toDataURL or pixel inspection is allowed. The useful artifact is a play/draw/export test matrix with the exact authorized origins and response behavior. This is a custom review-page integration problem; it is not a character-generation fault and does not imply that AISwapLab guarantees cross-origin screenshot export from every downloaded or hosted asset.

Build the evidence

  1. 01

    Establish the input evidence

    First confirm the intended reviewer is allowed to access the file and that the correct video actually plays. Record page and media origins without copying sensitive query tokens into the report. Test a same-origin or explicitly authorized local fixture to establish that the drawing/export code works. If that baseline fails, investigate media readiness, dimensions and canvas code before assuming a cross-origin cause. A zero-sized canvas or unavailable current frame can produce a different failure.

  2. 02

    Run a controlled diagnostic

    Set the video's crossOrigin mode before assigning its source and loading it. The source server must support the actual request mode and page origin; an attribute alone does not grant permission. After a frame is ready, draw it to a correctly sized canvas and handle export errors explicitly. A previous non-permitted draw can already taint a canvas, so use a fresh diagnostic canvas when comparing conditions. Keep private assets behind an authorized access design throughout the test.

  3. 03

    Verify the actual handoff

    Record whether playback succeeds, drawing occurs and export returns a usable image. Catch synchronous security failures and asynchronous export failure rather than reporting a blank file as success. Reopen any saved screenshot and bind it to the actual asset revision and captured media time. If the hosting system intentionally forbids cross-origin reading, use its supported review/export mechanism or obtain an approved same-origin derivative instead of treating the restriction as a defect to evade.

A bounded example

Illustrative case: a video plays from a media host, but calling toDataURL after drawing it raises a SecurityError. The local same-origin fixture exports correctly. That evidence points to the resource permission boundary rather than bad facial tracking or a corrupt MP4. Another case with a zero-width canvas needs a code fix instead. The sample is a documentation prototype, not an executed browser-security or live-hosting test.

Local workflow example

Documentation prototype only. No canvas security policy, private resource or shared-browser session was changed or tested.

javascript
// Authorized resource only; server CORS policy must match the page.
const video = document.createElement("video");
video.crossOrigin = "anonymous";
video.src = "https://media.example.test/approved.mp4";
// After a real frame is ready, use a fresh canvas and catch export failures.
// Playback success alone does not authorize canvas.toBlob()/toDataURL().

Task evidence worksheet

TestEvidenceMeaning
PlaybackPicture visibleNot pixel-read permission
Canvas exportUsable image or explicit failureOrigin-clean/readiness check
Authorized alternativeOwner-approved review pathNo security bypass

Acceptance evidence

  • Separate play, draw and export outcomes in the report.
  • Configure request mode before loading and require matching server permission.
  • Do not weaken private access or label an empty export as successful evidence.

Stop condition

Stop when the necessary server policy cannot be changed by the authorized owner or when a workaround would disclose private media. Preserve the failed test as an access limitation and use a supported review tool. No new generation or repeated re-encoding can grant a browser permission to read pixels from an origin that has not authorized it.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example