setCameraZoomRatio abstract method
Change the optical zoom magnification.
zoom
: Zoom magnification of the currently used camera (front/postcondition). The value range is 1, < Maximum Zoom Multiplier >
.
the maximum value that can be set is obtained through RTCVideo.getCameraZoomMaxRatio.
Notes:
- The result of the setting will expire after calling RTCVideo.stopVideoCapture to turn off the internal capturing.
- Call setVideoDigitalZoomConfig to set digital zoom. Call setVideoDigitalZoomControlto perform digital zoom.
Implementation
Future<int?> setCameraZoomRatio(double zoom);