Initializer

init(asset:presetName:)

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

Declaration

init?(asset: AVAsset, presetName: String)

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, AVAssetExportSession.Status.cancelled, 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