setVideoDigitalZoomControl abstract method
Digital zoom or move the local video image once. This action affects both the video preview locally and the stream published.
Valid since v3.51.1
direction
: Action of the digital zoom control
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- As the default offset is
0
, you must call setVideoDigitalZoomConfig. - You can only move video images after they are magnified via this API or startVideoDigitalZoomControl.
- When you request an out-of-range scale or movement, SDK will execute it with the limits. For example, when the image has been moved to the border, the image cannot be zoomed out, or has been magnified to 8x.
- Call startVideoDigitalZoomControl to have a continuous and repeatedly digital zoom control.
- Refer to setCameraZoomRatio if you intend to have an optical zoom control to the camera.
Implementation
Future<int?> setVideoDigitalZoomControl(ZoomDirectionType direction);