Instance Method


Returns the options used to reencode media from a given connection as it's being recorded.


func outputSettings(for connection: AVCaptureConnection) -> [String : Any]



The connection delivering the media to be reencoded.

Return Value

A dictionary of output settings.


If the returned value is an empty dictionary, the format of the media from the connection will not be changed before being written to the file.

If you invoked setOutputSettings(_:for:) with a nil dictionary, this method returns a non-nil dictionary reflecting the settings used by the capture session’s current sessionPreset.

See Also

Managing Output Settings

func supportedOutputSettingsKeys(for: AVCaptureConnection) -> [String]

The list of supported keys for the output settings dictionary.

func setOutputSettings([String : Any]?, for: AVCaptureConnection)

Sets the options dictionary used to reencode media from the given connection as it's being recorded.

var availableVideoCodecTypes: [AVVideoCodecType]

The video codec types currently supported for recording movie files.

Video Settings Dictionaries

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

struct AVVideoCodecType

A set of constants used to describe codecs for video capture.