Instance Method

outputSettings(for:)

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

Declaration

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

Parameters

connection

The connection delivering the media to be reencoded.

Return Value

A dictionary of output settings.

Discussion

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.

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