setVideoStabilization method

Future<void> setVideoStabilization({
  1. required bool toggle,
})

Enables and disables video stabilization.

Use isVideoStabilizationSupported to determine if calling this method is valid.

Video stabilization reduces the shaking due to the motion of the camera in both the preview stream and in recorded videos, including data received from the preview callback. It does not reduce motion blur in images captured with Camera.takePicture.

Video stabilization can be enabled and disabled while preview or recording is active, but toggling it may cause a jump in the video stream that may be undesirable in a recorded video.

See: getVideoStabilization

Implementation

Future<void> setVideoStabilization({required bool toggle}) {
  return _channel.$setVideoStabilization(this, toggle);
}