setCameraFocusPosition abstract method
Sets the manual focus position for the currently used camera.
position
: The position of the focus point. Setting the upper-left corner of the canvas as the origin, the x
in position
means the x-coordinate of the focus point in range of [0, 1]
, and the y
in position
means the y-coordinate of the focus point in range of [0, 1]
.
Notes:
- When you set the focus point at the center of the canvas, the focus point setting will be canceled.
- The camera focus point setting will be invalid after calling RTCVideo.stopVideoCapture to stop internal capturing.
Implementation
Future<int?> setCameraFocusPosition(Offset position);