supervision-js
    Preparing search index...

    Interface DetectionBufferPrepareOptions

    Per-call preparation context.

    Only a gated prepare reads duration and firstTimestamp, which bound the coverage it asks for at the end of media. Everything else the timeline needs about duration and looping arrives through BufferedDetectionTimeline.setTimelineContext.

    interface DetectionBufferPrepareOptions {
        duration?: number | null;
        firstTimestamp?: number;
        gatePlayback?: boolean;
    }
    Index
    duration?: number | null
    firstTimestamp?: number
    gatePlayback?: boolean

    Wait for the coverage DetectionPlaybackGateOptions asks for before loading the hot window.

    Defaults to false, and does nothing unless the timeline was built with an enabled gate. Both have to say yes, so a caller that prepares detections for its own reasons never blocks on coverage.