startVideoDigitalZoomControl abstract method

Future<int?> startVideoDigitalZoomControl(
  1. ZoomDirectionType direction
)

Continuous and repeatedly digital zoom control. This action effect both the video preview locally and the stream published.

Valid since v3.51.1

direction: Action of the digital zoom control.

Return value:

Notes:

  • As the default offset is 0, you must call setVideoDigitalZoomConfig before this API.
  • You can only move video images after they are magnified via this API or setVideoDigitalZoomControl.
  • The control process stops when the scale reaches the limit, or the images have been moved to the border. if the next action exceeds the scale or movement range, SDK will execute it with the limits.
  • Call stopVideoDigitalZoomControl to stop the ongoing zoom control.
  • Call setVideoDigitalZoomControl to have a one-time digital zoom control.
  • Refer to setCameraZoomRatio if you intend to have an optical zoom control to the camera.

Implementation

Future<int?> startVideoDigitalZoomControl(ZoomDirectionType direction);