AutoMovie API
    Preparing search index...

    Function playbackCursor

    • A forward-only playback resolver for a non-decreasing query clock, turning repeated random-access searches into one sweep over frames and entries.

      Entry starts never decrease for a sequence that passed cutSequence; a transition as long as the previous entry's played span makes two adjacent starts equal, and the timeline tiles [0, runtime) with no gaps. The cursor advances while the next entry's start <= seconds, so among equal starts it lands on the highest index, the last entry whose span contains the instant, which is the same live entry resolveFromTimeline's binary search picks; both build the sample with playbackSampleAt, so the samples are identical.

      The returned function keeps the live index between calls. Passing a time earlier than the previous call does not move the cursor back and returns a wrong sample; use resolveFromTimeline for random access. playbackFrameSamples drives it once per output frame in order.

      Parameters

      Returns (seconds: number) => IAutoMoviePlaybackSample

      A resolver from output seconds to the on-screen sample.