Type Method


Returns an asset export session configured with a specified asset and preset.


+ (instancetype)exportSessionWithAsset:(AVAsset *)asset presetName:(NSString *)presetName;



The asset you want to export.


A string constant specifying the name of the preset template for the export.

For possible values, see Export Preset Names for Device-Appropriate QuickTime Files, Export Preset Names for QuickTime Files of a Given Size, AVAssetExportSessionStatusCancelled, Export Preset Name for iTunes Audio, and Export Preset Name for Pass-Through.

Return Value

An asset export session initialized to export asset using preset presetName.

See Also

Initializing a Session

- initWithAsset:presetName:

Creates an asset export session with a specified asset and preset.