CameraProfileConstraints

CameraProfileConstraints

Camera parameters, specific values ​​can be set according to requirements.

Members

width :number|null

default 1280, pass null to use the default value

Type:
  • number | null

height :number|null

default 720, pass null to use the default value

Type:
  • number | null

deviceId :string|'user'|'environment'

You can through getDevices interface to get deviceID. The default deviceId depends on system default value.

Mobile can pass 'user' | 'environment', to use front/rear camera.

Type:
  • string | 'user' | 'environment'