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

    Function buildDemoSchedule

    • Build a rotating TiltifySchedule array where the slot containing now is the active block. Each element of DEMO_SCHEDULE maps to one slot; the active index rotates through the array as time advances (activeIndex = currentSlot % DEMO_SCHEDULE.length) so overlays that watch a fixed campaign see a continuously-changing lineup.

      Timestamps are anchored to epoch so consecutive slots abut exactly — no gaps, no overlap. inserted_at / updated_at mirror epoch for cache-friendliness.

      Pure function — same inputs always produce the same output. State + tick management live in the fusion useLiveSchedule hook's demo adapter.

      Parameters

      Returns TiltifySchedule[]

      const schedule = buildDemoSchedule({ intervalMs: 10_000 });