Instance Property


Describes the error that occurred.


var error: Error? { get }


This property describes the error if the export status is AVAssetExportSession.Status.failed or AVAssetExportSession.Status.cancelled. If there is no error to report, the value of this property is nil.

See Also

Exporting Media

func exportAsynchronously(completionHandler: () -> Void)

Starts the asynchronous execution of an export session.

func cancelExport()

Cancels the execution of an export session.

enum AVAssetExportSession.Status

A set of statuses used for relaying the state of an export session.

var estimatedOutputFileLength: Int64

The estimated size, in bytes, of the exported file.

var maxDuration: CMTime

Provides an estimate of the maximum duration of the exported media.