Instance Property


The video codec types currently supported for recording movie files.


var availableVideoCodecTypes: [AVVideoCodecType] { get }


The first codec in this list is the default for recording movie files. To record using a different codec, call the setOutputSettings(_:for:) method, passing a video settings dictionary with a value for AVVideoCodecKey that matches one of the other values in this list.

See Also

Managing Output Settings

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

The list of supported keys for the output settings dictionary.

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

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

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

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

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.