Skip to content

ReplaysController beta ​

Interface of @v12-engine/client

ts
export interface ReplaysController

The replays this browser kept: listed, watched, kept as a file, thrown away, and one opened from a file. What the replays' screen shows (replaysScene)

Members ​

download ​

ts
download(id: string): Promise<void>;

Hands one of them to the player as a file

list ​

ts
readonly list: Accessor<ReplaySummary[]>;

The replays kept, newest first

open ​

ts
open(file: Blob): Promise<void>;

Plays a replay from a file. said says why when it is not one

refresh ​

ts
refresh(): Promise<void>;

Reads the list again

remove ​

ts
remove(id: string): Promise<void>;

Throws one away, and reads the list again

said ​

ts
readonly said: Accessor<string>;

What went wrong last, in words: a file that is not a replay. Empty when nothing did

watch ​

ts
watch(id: string): void;

Plays one of them