startVideoDigitalZoomControl method

FutureOr<int> startVideoDigitalZoomControl(
  1. ByteRTCZoomDirectionType direction
)

@valid since 3.51 @detail api @hiddensdk(audiosdk) @author likai.666 @brief Continuous and repeatedly digital zoom control. This action effect both the video preview locally and the stream published. @param direction Action of the digital zoom control. Refer to ByteRTCZoomDirectionType{@link #ByteRTCZoomDirectionType}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - As the default offset is 0, you must call setVideoDigitalZoomConfig:size:{@link #ByteRTCEngine#setVideoDigitalZoomConfig:size} before this API. - You can only move video images after they are magnified via this API or setVideoDigitalZoomControl:{@link #ByteRTCEngine#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{@link #ByteRTCEngine#stopVideoDigitalZoomControl} to stop the ongoing zoom control. - Call setVideoDigitalZoomControl:{@link #ByteRTCEngine#setVideoDigitalZoomControl} to have a one-time digital zoom control. - Refer to setCameraZoomRatio:{@link #ByteRTCEngine#setCameraZoomRatio} if you intend to have an optical zoom control to the camera. For iOS only.

Implementation

FutureOr<int> startVideoDigitalZoomControl(
    ByteRTCZoomDirectionType direction) async {
  return await nativeCall(
      'startVideoDigitalZoomControl:', [direction.$value]);
}