Package io.agora.rtc2.video
Class CameraCapturerConfiguration
java.lang.Object
io.agora.rtc2.video.CameraCapturerConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescription(Optional) The camera direction.(Optional) The camera focal length type.(Optional) The camera ID.(Optional) The format of the video frame.(Optional) Whether to follow the video aspect ratio set in `setVideoEncoderConfiguration`: - `true`: (Default) Follow the set video aspect ratio. -
Constructor Summary
ConstructorsConstructorDescriptionCameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection) The camera capture configuration.CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CAMERA_FOCAL_LENGTH_TYPE cameraFocalLengthType) CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CAMERA_FOCAL_LENGTH_TYPE cameraFocalLengthType, CameraCapturerConfiguration.CaptureFormat captureFormat) CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CaptureFormat captureFormat) The camera capture configuration.The camera capture configuration. -
Method Summary
-
Field Details
-
cameraDirection
(Optional) The camera direction. See `CAMERA_DIRECTION`. -
cameraId
(Optional) The camera ID. The default value is the camera ID of the front camera. You can get the camera ID through the Android native system API, see `Camera.open()` and `CameraManager.getCameraIdList()` for details. -
cameraFocalLengthType
(Optional) The camera focal length type. See `CAMERA_FOCAL_LENGTH_TYPE`. -
captureFormat
(Optional) The format of the video frame. See `CaptureFormat`. -
followEncodeDimensionRatio
(Optional) Whether to follow the video aspect ratio set in `setVideoEncoderConfiguration`: - `true`: (Default) Follow the set video aspect ratio. The SDK crops the captured video according to the set video aspect ratio and synchronously changes the local preview screen and the video frame in `onCaptureVideoFrame` and `onPreEncodeVideoFrame`. - `false`: Do not follow the system default audio playback device. The SDK does not change the aspect ratio of the captured video frame.
-
-
Constructor Details
-
CameraCapturerConfiguration
The camera capture configuration.- Parameters:
cameraDirection- The camera direction. For details, seeCAMERA_DIRECTION.
-
CameraCapturerConfiguration
public CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CAMERA_FOCAL_LENGTH_TYPE cameraFocalLengthType) -
CameraCapturerConfiguration
The camera capture configuration.- Parameters:
captureFormat- The camera capture format. For details, seeCameraCapturerConfiguration.CaptureFormat.
-
CameraCapturerConfiguration
public CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CaptureFormat captureFormat) The camera capture configuration.- Parameters:
cameraDirection- The camera direction. For details, seeCAMERA_DIRECTION.captureFormat- The camera capture format. For details, seeCameraCapturerConfiguration.CaptureFormat.
-
CameraCapturerConfiguration
public CameraCapturerConfiguration(CameraCapturerConfiguration.CAMERA_DIRECTION cameraDirection, CameraCapturerConfiguration.CAMERA_FOCAL_LENGTH_TYPE cameraFocalLengthType, CameraCapturerConfiguration.CaptureFormat captureFormat)
-
-
Method Details