Skip to content

textmode.export.js / ZIPCaptureOptions

Interface: ZIPCaptureOptions ​

Options shared by all ZIP frame formats.

Set these alongside the required format in ZIPExportOptions. For example, frameCount: 120 and frameRate: 30 capture four seconds.

Properties ​

PropertyTypeDescription
filename?stringTarget archive filename, with or without .zip.
frameCount?numberNumber of frames to capture, from 1 through 65,534. Defaults to 300.
frameRate?numberNumber of frames to capture per second. Must be greater than zero and finite. Defaults to 60.
onProgress?(progress) => voidReceives capture and archive lifecycle updates.
prepareFrame?PrepareExportFrameUpdates external state before each frame is drawn. The callback receives frameIndex (starting at zero), frameCount, frameRate, startSeconds, centerSeconds, endSeconds, and an optional abort signal. Use centerSeconds to sample external media. Capture waits for a returned promise before drawing.
signal?AbortSignalCancels capture, serialization, or archive finalization.