Interface TemporalPlaybackExperimental

Playback controller returned by createTemporalPlayback.

interface TemporalPlayback {
    extent: TemporalWindow;
    playing: boolean;
    window: TemporalWindow;
    dispose(): void;
    on(type: "tick", listener: ((event: TemporalPlaybackTick) => void)): TemporalPlaybackSubscription;
    on(type: "end" | "play" | "pause", listener: (() => void)): TemporalPlaybackSubscription;
    on(type: "error", listener: ((error: unknown) => void)): TemporalPlaybackSubscription;
    pause(): void;
    play(): void;
    scrub(time: TemporalInstant): void;
    setWindow(windowMs: number): void;
}

Properties

The normalized extent (epoch ms).

playing: boolean

The current window (epoch ms, half-open).

Methods