Skip to main content

Type Alias: CameraConfigBase

CameraConfigBase: object

Defined in: packages/react-native-client/src/hooks/useCamera.ts:36

Type declaration

cameraEnabled?

optional cameraEnabled: boolean

whether the camera track is initially enabled, you can toggle it on/off later with toggleCamera method

Default

true

cameraId?

optional cameraId: CameraId

id of the camera to start capture with. Get available cameras with cameras. You can switch the cameras later with switchCamera functions.

Default

the first front camera

flipDimensions?

optional flipDimensions: boolean

whether to flip the dimensions of the video, that is whether to film in vertical orientation. This basically switches width with height and is only used to select closes capture format.

To record horizontal video your phone orientation must be in landscape and your app must support this orientation.

Platform specific capture formats:

See

WebRTC device orientation handling:

Default

true

quality?

optional quality: VideoQuality

resolution + aspect ratio of local video track, one of: QVGA_169, VGA_169, QHD_169, HD_169, FHD_169, QVGA_43, VGA_43, QHD_43, HD_43, FHD_43. Note that quality might be worse than specified due to device capabilities, internet connection etc.

Default

VGA_169