Separate the evidence from the decision
Browser timers, playback position and actual picture presentation are related but different. A repeating JavaScript timer can run between displayed frames or be delayed under load. The video-frame callback supplies frame-related metadata useful for review interfaces. The artifact is a presentation log with clear coordinate and completeness limits. It is an external application pattern, not a claim that AISwapLab currently stores frame-specific browser notes or exposes an exact frame-stepping API.
Build the evidence
- 01
Establish the input evidence
Record the video asset revision and browser environment before logging. Verify that the browser supports the callback method and provide a simpler time-based fallback when it does not. Explain the weaker fallback in the record. Do not silently switch implementations and present the resulting notes as equivalent precision. The source must be authorized for the review audience, and logs should not include private signed URLs or unrelated account information.
- 02
Run a controlled diagnostic
Schedule the next callback from each callback and retain the returned mediaTime and presentedFrames metadata. The example also records the callback's monotonic time, but those coordinate systems have different units and meanings. A gap in callback counts can reflect missed callback opportunities or presentation behavior, not automatically a missing encoded picture. Store seek, pause and source-change boundaries with the log when interpreting a longer session so unrelated playback segments are not treated as one uninterrupted trace.
- 03
Verify the actual handoff
When a reviewer marks an issue, save the current presented-media coordinate and a short description of the visible event. Resolve that reference against the same saved media later. For variable-rate or retimed files, do not convert seconds to a frame index by multiplying a rounded nominal fps and call it exact. Use an offline frame-time map when original encoded-frame membership matters. Keep ordinary-speed review and the person's actual verdict separate from the browser's technical metadata.
A bounded example
Illustrative use: a reviewer flags a brief left-hand overlap while the page's ordinary timer still shows the preceding rounded second. The callback log supplies a more useful presented-media coordinate for finding that picture again. It does not prove the model preserved the source's exact action timing, and another player may have a different presentation schedule. The code is a documentation prototype rather than an executed browser or paid-generation benchmark. Distinguish an aborted logging session from a completed human review before aggregating any reports.
Local workflow example
Documentation JavaScript prototype only. No shared-browser operation, presentation log or paid generation was executed.
const video = document.querySelector("video");
const log = [];
if (!("requestVideoFrameCallback" in video)) throw new Error("Frame callback unavailable");
function record(now, frame) {
log.push({now, mediaTime:frame.mediaTime, presentedFrames:frame.presentedFrames});
video.requestVideoFrameCallback(record);
}
video.requestVideoFrameCallback(record);Task evidence worksheet
| Coordinate | Meaning | Limit |
|---|---|---|
| mediaTime | Presented media timeline | Not original source frame identity |
| presentedFrames | Submitted presentation count | Not a reviewed-frame tally |
| Review note | Human observation and asset revision | Still needs an actual verdict |
Acceptance evidence
- Bind notes to the exact asset revision and declared media coordinate.
- Keep seek/pause boundaries and fallback precision explicit.
- Do not equate callback records with complete encoded-frame inspection.
Stop condition
Stop claiming complete frame coverage from callback logs. If a delivery requirement demands every decoded frame, use an offline full-frame inspection and retain its output. If playback is overloaded, diagnose the environment and repeat the review; an attractive technical log cannot replace actually seeing the required action at the intended delivery speed.
