Rate this page:

CameraParams

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

Props

aspectRatio

Optional
Copy URL
var aspectRatio: 

Optional. Aspect ratio.

cameraId

Optional
Copy URL
var cameraId: 

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

facingMode

Optional
Copy URL
var facingMode: 

Optional. Whether to use the front camera on a mobile device. This parameter is available only for mobile devices. We do not recommend using this parameter for desktop devices. The default value for mobile devices is true.

frameHeight

Optional
Copy URL
var frameHeight: 

Optional. Frame height in pixels. The parameter is less prior than videoQuality.

frameRate

Optional
Copy URL
var frameRate: 

Optional. Frames per second.

frameWidth

Optional
Copy URL
var frameWidth: 

Optional. Frame width in pixels. The parameter is less prior than videoQuality.

strict

Optional
Copy URL
var strict: 

Optional. Whether all video settings should suit each other strictly; the incorrect settings cause an error. if false, the incorrect values are changed to the best appropriate values. The default value is false.

videoQuality

Optional
Copy URL
var videoQuality: 

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