Instance Property

alwaysDiscardsLateVideoFrames

Indicates whether video frames are dropped if they arrive late.

Declaration

var alwaysDiscardsLateVideoFrames: Bool { get set }

Discussion

When the value of this property is true, the object immediately discards frames that are captured while the dispatch queue handling existing frames is blocked in the captureOutput(_:didOutput:from:) delegate method.

When the value of this property is false, delegates are allowed more time to process old frames before new frames are discarded, but application memory usage may increase significantly as a result.

The default is true.

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 these key and value constants.

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.