supervision-js
    Preparing search index...

    Interface RenderPreparationOptions

    Render-preparation configuration.

    Most applications can use the session defaults. Tune this when dense masks, long videos, worker policy, or playback gating need explicit behavior.

    Index
    onDiagnostics?: (diagnostics: RenderPreparationDiagnostics) => void

    Hold playback until prepared artifacts cover the frame about to be presented.

    This option reaches two different distances depending on the source. A source the renderer pulls samples from is held at every frame. A source that presents its own frames is held only at the start of playback, because stopping the producer mid-run needs an answer about coverage that render preparation cannot give without waiting for it, so frames after the start arrive whether their artifacts are ready or not. playbackGateReach on the renderer's state reports the furthest any of its gates reaches.

    A renderer created directly leaves this off. createMediaSession() turns it on, so a session opens with its annotations rather than opening bare; pass playbackGate: false to the session to opt out. See RenderPreparationPlaybackGateOptions.