setCameraStabilizationMode abstract method

Future<void> setCameraStabilizationMode(
  1. CameraStabilizationMode mode
)

Sets the camera stabilization mode.

Camera stabilization mode is disabled by default. You need to call this method to enable it and set the appropriate stabilization mode. This method is for iOS only. Camera stabilization only takes effect when the video resolution is greater than 1280 × 720. The higher the stabilization level, the narrower the camera's field of view and the greater the camera delay. To ensure user experience, it is recommended to set the mode parameter to cameraStabilizationModeLevel1.

  • mode Camera stabilization mode. See CameraStabilizationMode.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setCameraStabilizationMode(CameraStabilizationMode mode);