Instance Property

deliversPreviewSizedOutputBuffers

A Boolean value that indicates whether the output is configured to deliver preview-sized buffers.

Declaration

var deliversPreviewSizedOutputBuffers: Bool { get set }

Discussion

AVCaptureVideoDataOutput produces preview-sized buffers, which are approximately the size of the screen, when its automaticallyConfiguresOutputBufferDimensions property is true. If you wish to manually set this property, you must first set automaticallyConfiguresOutputBufferDimensions to false.

See Also

Configuring Video Capture

var videoSettings: [String : Any]!

The compression settings for the output.

Video Settings Dictionaries

Define output image and video formats by using the key and value constants.

var alwaysDiscardsLateVideoFrames: Bool

Indicates whether to drop video frames if they arrive late.

var automaticallyConfiguresOutputBufferDimensions: Bool

A Boolean value that indicates whether the output automatically configures the size of output buffers.

func recommendedVideoSettings(forVideoCodecType: AVVideoCodecType, assetWriterOutputFileType: AVFileType) -> [AnyHashable : Any]?

Returns a video settings dictionary appropriate for capturing video to be recorded to a file with the specified codec and type.

func recommendedVideoSettingsForAssetWriter(writingTo: AVFileType) -> [String : Any]?

Specifies the recommended settings for use with an AVAssetWriterInput.