Skip to content

Kiln API / kiln / Replayer

Class: Replayer ​

Plays a recording on an app that hasn't run Startup. Call play() to advance (all frames, or up to a frame); the app can be inspected and stepped between calls.

Constructors ​

Constructor ​

ts
new Replayer(app, recording): Replayer;

Parameters ​

ParameterType
appApp
recordingRecording

Returns ​

Replayer

Properties ​

recording ​

ts
readonly recording: Recording;

Accessors ​

frame ​

Get Signature ​

ts
get frame(): number;

Frames played so far.

Returns ​

number


done ​

Get Signature ​

ts
get done(): boolean;

True once every recorded frame has played.

Returns ​

boolean


status ​

Get Signature ​

ts
get status(): ReplayResult;
Returns ​

ReplayResult

Methods ​

warnOnce() ​

ts
warnOnce(text): void;

Adds a note to the result, once per distinct text. Plugins call it when a replay can't apply something.

Parameters ​

ParameterType
textstring

Returns ​

void


play() ​

ts
play(until?): Promise<ReplayResult>;

Plays to frame until (default: the end). Events emitted during the replay stay readable with app.events(E).

Parameters ​

ParameterType
untilnumber

Returns ​

Promise<ReplayResult>