videosphere
    Preparing search index...
    • Finds the last keyframe at or before a timestamp.

      Parameters

      • timestamp: number

        Reference timestamp in seconds.

      • keyframes: number[]

        Candidate keyframe timestamps in seconds.

      Returns number

      Nearest keyframe at or before the timestamp, or null when none exist.