Type Method

outputSettingsAssistantWithPreset:

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

Declaration

+ (instancetype)outputSettingsAssistantWithPreset:(AVOutputSettingsPreset)presetIdentifier;

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

+ availableOutputSettingsPresets

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

AVOutputSettingsPreset

A preset configuration used to configure writers.