supervision-js
    Preparing search index...

    Interface DetectionBufferPrepareOptions

    Per-call preparation context.

    A gated prepare reads duration and firstTimestamp to bound coverage at the end of media. They also remain per-call fallbacks for timelines whose host has not supplied the complete clock 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.