@playlive/realtime-pipeline
    Preparing search index...

    Interface BuildDemoScheduleParams

    Options accepted by buildDemoSchedule.

    interface BuildDemoScheduleParams {
        epoch?: number;
        intervalMs?: number;
        now?: number;
    }
    Index
    epoch?: number

    Timestamp anchoring slot 0's starts_at. Slot 0's window is [epoch, epoch + intervalMs); slot 1 is [epoch + intervalMs, epoch + 2 * intervalMs); and so on. For a schedule that surrounds the current time on first render, callers should pass Date.now() - intervalMs / 2 (see the useLiveSchedule demo-mode adapter in @playlive/react-pipeline/fusion).

    Defaults to Date.now(). Callers that want deterministic tests can pin this to a fixed value.

    intervalMs?: number

    Width of each demo schedule slot, in milliseconds. Defaults to DEFAULT_DEMO_SCHEDULE_INTERVAL_MS. Values below MIN_DEMO_SCHEDULE_INTERVAL_MS are clamped up.

    now?: number

    Reference "now" used to pick the active slot. Defaults to Date.now(). Callers with fake timers can pin this alongside epoch for deterministic output.