Member Junction
    Preparing search index...
    interface FrameSamplerOptions {
        MaxDimension?: number;
        MimeType?: SampledFrameMimeType;
        OnFrame: (frame: SampledFrame) => void;
        Quality?: number;
        Rate: number;
    }
    Index

    Properties

    MaxDimension?: number

    Caps the longer side of each frame, in pixels, keeping the aspect ratio. A smaller frame is never enlarged. Defaults to no cap: frames are encoded at the stream's own size.

    Defaults to 'image/jpeg'.

    OnFrame: (frame: SampledFrame) => void

    Receives each frame.

    Quality?: number

    JPEG quality from 0 to 1. Defaults to 0.8. Ignored for PNG.

    Rate: number

    Frames per second. Pass the rate the inbound video track negotiated; there is no ceiling. An absent, zero, negative or non-finite rate means one frame per second.