Instance Property

preferredVideoStabilizationMode

The stabilization mode most appropriate for use with the connection.

Declaration

var preferredVideoStabilizationMode: AVCaptureVideoStabilizationMode { get set }

Discussion

This property applies only to capture connections involving video. On devices where the video stabilization feature is supported, only a subset of available source formats may be stabilized.

Set this property to a value other than AVCaptureVideoStabilizationMode.off to enable stabilization whenever the specified mode is available. Enabling video stabilization introduces additional latency into the video capture pipeline and may consume more system memory depending on the stabilization mode and format. If the preferred stabilization mode isn't available, the activeVideoStabilizationMode property is set to AVCaptureVideoStabilizationMode.off. Setting this property to AVCaptureVideoStabilizationMode.auto chooses an appropriate mode for the capture format and frame rate. Use Key-value observing with the activeVideoStabilizationMode property to determine which stabilization mode is in use.

The default value is AVCaptureVideoStabilizationMode.off.

See Also

Managing the Video Stabilization Settings

var isVideoStabilizationSupported: Bool

A Boolean value that indicates whether this connection supports video stabilization.

var activeVideoStabilizationMode: AVCaptureVideoStabilizationMode

The stabilization mode currently active for the connection.

var isVideoStabilizationEnabled: Bool

A Boolean value that indicates whether video stabilization is active for the connection.

Deprecated
var enablesVideoStabilizationWhenAvailable: Bool

A Boolean value that indicates whether the system should enable video stabilization when it is available.

Deprecated