supervision-js
    Preparing search index...

    Type Alias MediaStreamRendererSourceOptions

    type MediaStreamRendererSourceOptions = {
        onPresentedFrame?: (frame: MediaStreamPresentedFrame) => void;
        maxBufferedFrames?: number;
        timestampOrigin?: "first-frame" | "media";
        stopTracksOnDispose?: boolean;
    }
    Index
    onPresentedFrame?: (frame: MediaStreamPresentedFrame) => void

    Receives metadata for each presented frame, before the snapshot is taken.

    Called synchronously from the browser frame callback so wall-clock correlation stays accurate. Keep the handler cheap; a handler that throws is ignored and does not interrupt playback.

    maxBufferedFrames?: number

    Maximum decoded snapshots retained while the renderer is catching up.

    timestampOrigin?: "first-frame" | "media"

    Timestamp origin exposed to the renderer. "media" preserves the browser MediaStream clock. "first-frame" starts the visible timeline at zero so an independently transported detection stream can apply the same origin. Defaults to "media".

    stopTracksOnDispose?: boolean

    Stop the caller-supplied MediaStream tracks when the session is destroyed. Defaults to false because WebRTC connection ownership normally stays with the host application.