Rate this page:

CameraParams

Camera constraints. Hardware camera will be chosen according to these settings.
Settings are specified via CameraManager.setDefaultVideoSettings and CameraManager.setCallVideoSettings

Props

cameraId

Copy URL
cameraId: 

string

Unique ID of camera. It can be received via the CameraManager.getInputDevicesmethod.

facingMode

Copy URL
facingMode: 

boolean

Flip image or not? If it's true, the image will be flipped (mirror mode). It's false by default.

frameHeight

Copy URL
frameHeight: 

number

Height of a frame in pixels. The parameter is less prior than videoQuality.

frameRate

Copy URL
frameRate: 

number

Frames per second.

frameWidth

Copy URL
frameWidth: 

number

Width of a frame in pixels. The parameter is less prior than videoQuality.

strict

Copy URL
strict: 

boolean

If it's true, all video settings must suit each other strictly; the incorrect settings will cause an error. If it's false, the incorrect values will be changed to the best appropriate values. It's false by default.

videoQuality

Copy URL
videoQuality: 

VideoQuality

One of the video quality values. The parameter is prior than frameWidth and frameHeight parameters.