Type Method

exportSessionWithAsset:presetName:

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

Declaration

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

Parameters

asset

The asset you want 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

- initWithAsset:presetName:

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

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