Initializer

init(preset:)

Creates and initializes an output setting assistant with the given preset.

Declaration

convenience init?(preset presetIdentifier: AVOutputSettingsPreset)

Parameters

presetIdentifier

The preset identifier.

Return Value

An initialized AVOutputSettingsAssistant instance with the presetIdentifier value.

Discussion

The properties of the returned object can be used as a guide for creating and configuring an AVAssetWriter object and one or more AVAssetWriterInput objects. If all the suggested properties are respected in creating the AVAssetWriter, the resulting media file will conform to the criteria implied by the preset.

See Also

Creating an Output Settings Assistant

class func availableOutputSettingsPresets() -> [AVOutputSettingsPreset]

Returns the array of presets to use when creating an output settings assistant.

struct AVOutputSettingsPreset

A preset configuration used to configure writers.