CameraParams
Camera constraints. Hardware camera will be chosen according to these settings. Settings are specified via CameraManager.setDefaultVideoSettings and CameraManager.setCallVideoSettings.
Props
aspectRatio
aspectRatio: number
cameraId
cameraId: string
Unique ID of camera. It can be received via the CameraManager.getInputDevices method.
facingMode
facingMode: boolean
Camera to use for video capture. If it's true, the front camera of your device will be used; if it's false, the rear camera will be in use. It's true by default in mobile browsers.
frameHeight
frameHeight: number
Height of a frame in pixels. The parameter is less prior than videoQuality.
frameRate
frameRate: number
Frames per second.
frameWidth
frameWidth: number
Width of a frame in pixels. The parameter is less prior than videoQuality.
strict
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
videoQuality:
One of the video quality values. The parameter is prior than frameWidth and frameHeight parameters.