supervision-js
    Preparing search index...

    Interface MediaFrameCaptureOptions

    Encoder options for capturing the currently presented media frame.

    interface MediaFrameCaptureOptions {
        type?: string;
        quality?: number;
    }
    Index
    type?: string

    Encoded image MIME type. Defaults to image/jpeg.

    Browsers are only required to support image/png; unsupported types fall back to the browser's default encoding, which the capture reports back in MediaFrameCapture.type.

    quality?: number

    Lossy encoder quality between 0 and 1. Defaults to 0.92. Ignored by lossless encoders such as image/png.