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
options?
FrameSequenceOptions = {}
Returns
Promise<Blob[]>