Instance Method

initWithAsset:presetName:

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

Declaration

- (instancetype)initWithAsset:(AVAsset *)asset presetName:(NSString *)presetName;

Parameters

asset

The asset to export.

presetName

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

+ exportSessionWithAsset:presetName:

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