Skip to content

textmode.export.js / VideoExportProgress

Type Alias: VideoExportProgress ​

ts
type VideoExportProgress = object;

Progress information emitted while a deterministic video is probed, captured, and written.

Properties ​

codec? ​

ts
optional codec?: VideoCodec;

Effective codec family selected after capability probing (avc, vp9, or vp8).


codedHeight? ​

ts
optional codedHeight?: number;

Effective coded height in pixels.


codedWidth? ​

ts
optional codedWidth?: number;

Effective coded width in pixels.


frame? ​

ts
optional frame?: number;

Alias for frameIndex. Prefer this field in new code.


frameIndex? ​

ts
optional frameIndex?: number;

Number of frames captured so far.


frameRate? ​

ts
optional frameRate?: number;

Exact output frame rate passed to the muxer.


message? ​

ts
optional message?: string;

Optional status message for UI consumption.


phase? ​

ts
optional phase?: VideoExportPhase;

Current detailed phase. See VideoExportPhase for current and compatibility-only values.


progress? ​

ts
optional progress?: number;

Normalized frame-capture completion ratio between 0 and 1.

Final writing or muxing may still be in progress when this value reaches 1.


state ​

ts
state: VideoRecordingState;

Current high-level export state.


totalFrames? ​

ts
optional totalFrames?: number;

Total number of frames planned for the recording.