Skip to content

Intermact API Reference / @intermact/react / captureFrameSequencePng

Function: captureFrameSequencePng() ​

captureFrameSequencePng(canvas, player, options?): Promise<Blob[]>

Defined in: react/src/export/recordCanvas.ts:128

Deterministically export a fixed-fps PNG sequence by seeking the player frame by frame and capturing each frame (design.md §17). Unlike recordCanvasVideo this is reproducible and frame-exact. The canvas must be created with preserveDrawingBuffer: true so toBlob sees the drawn pixels.

Parameters ​

canvas ​

HTMLCanvasElement

player ​

Player

options? ​

FrameSequenceOptions = {}

Returns ​

Promise<Blob[]>

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)