Instance Property

availableVideoCodecTypes

The video codec types currently supported for recording movie files.

Declaration

var availableVideoCodecTypes: [AVVideoCodecType] { get }

Discussion

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.

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