Interface VideoCaptureOptions

interface VideoCaptureOptions {
    deviceId?: ConstrainDOMString;
    facingMode?: "user" | "environment" | "left" | "right";
    processor?: TrackProcessor<Video, VideoProcessorOptions>;
    resolution?: VideoResolution;
}

Properties

deviceId?: ConstrainDOMString

A ConstrainDOMString object specifying a device ID or an array of device IDs which are acceptable and/or required.

facingMode?: "user" | "environment" | "left" | "right"

a facing or an array of facings which are acceptable and/or required.

initialize the track with a given processor

resolution?: VideoResolution