cameraId property
(Optional) Camera ID. Defaults to the front camera's ID. You can get the camera ID using Android native system APIs. See Camera.open() and CameraManager.getCameraIdList(). This parameter is only applicable to Android. This parameter and cameraDirection are both used to specify the camera and are mutually exclusive. You can choose either one as needed. The differences are: Using cameraDirection is simpler. You only need to specify the direction (front or rear), and the SDK will determine the actual camera ID via system APIs. Using cameraId allows you to specify a particular camera more precisely. On multi-camera devices, cameraDirection may not detect or access all available cameras. In such cases, it's recommended to use cameraId to directly specify the desired camera ID.
Implementation
@JsonKey(name: 'cameraId')
final String? cameraId;