setCameraStabilizationMode
Set the camera stabilization mode.
virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode) = 0;
- Since
- v4.3.1
Attention:
This method applies to iOS only.
The camera stabilization mode is off by default. You need to call this method to turn it on and set the appropriate stabilization mode.
Applicable scenarios
When shooting on the move, in low light conditions, or with mobile devices, you can set the camera stabilization mode to reduce the impact of camera shake and get a more stable, clear picture.
Call timing
This method must be called after the camera is successfully enabled, that is, after the SDK triggers the onLocalVideoStateChanged callback and returns the local video state as LOCAL_VIDEO_STREAM_STATE_CAPTURING (1).
Restrictions
- Camera stabilization only works for scenarios with a video resolution greater than 1280 x 720.
- After enabling camera stabilization, the higher the camera stabilization level, the smaller the camera's field of view and the greater the camera's latency. To improve user experience, it is recommended that you set the mode parameter to CAMERA_STABILIZATION_MODE_LEVEL_1.
Parameters
- mode
- Camera stabilization mode. See CAMERA_STABILIZATION_MODE.
Returns
- 0: Success.
- < 0: Failure.