Enumeration

AVCaptureVideoOrientation

Constants indicating video orientation.

Declaration

enum AVCaptureVideoOrientation : Int

Overview

You use these constants in conjunction with an AVCaptureVideoPreviewLayer object; see videoOrientation.

Topics

Constants

case portrait

Indicates that video should be oriented vertically, top at the top.

case portraitUpsideDown

Indicates that video should be oriented vertically, top at the bottom.

case landscapeRight

Indicates that video should be oriented horizontally, top on the left.

case landscapeLeft

Indicates that video should be oriented horizontally, top on the right.

See Also

Managing Video Configuration

var isVideoOrientationSupported: Bool

A Boolean value that indicates whether the connection supports changing the orientation of the video.

var videoFieldMode: AVVideoFieldMode

An indicator of how interlaced video flowing through the connection should be treated

var isVideoFieldModeSupported: Bool

A Boolean value that indicates whether the connection supports setting the videoFieldMode property.

var videoMinFrameDuration: CMTime

The minimum time interval between which the receiver should output consecutive video frames.

var isVideoMinFrameDurationSupported: Bool

A Boolean value that indicates whether the connection supports setting the videoMinFrameDuration property.

var videoMaxFrameDuration: CMTime

The maximum time interval between which the receiver should output consecutive video frames.

var isVideoMaxFrameDurationSupported: Bool

A Boolean value that indicates whether the connection supports setting the videoMaxFrameDuration property.

var videoScaleAndCropFactor: CGFloat

The current video scale and crop factor in use by the receiver.

var videoMaxScaleAndCropFactor: CGFloat

The maximum video scale and crop factor by the connection.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software