Interface ConstrainLong

Specifies a constraint for a property, such as the resolution or bitrate for video capture in [[VideoEncoderConfiguration]].

interface ConstrainLong {
    exact?: number;
    ideal?: number;
    max?: number;
    min?: number;
}

Properties

Properties

exact?: number

A required value of a property. If the video capture device cannot output this value, the video capture fails.

ideal?: number

An ideal value of a property. If the video capture device cannot output this value, it outputs the closest value instead.

max?: number

The upper limit of the property.

min?: number

The lower limit of the property.