Instance Property


A value that indicates the creation date of the asset.


var creationDate: AVMetadataItem? { get }


The value of this property may be nil.

If a creation date has been stored by the asset in a form that can be converted to an NSDate object, the dateValue property of the metadata item provides an instance of NSDate. Otherwise the creation date is available only as a string value, using the AVMetadataItem class’s stringValue method.

See Also

Inspecting an Asset

var duration: CMTime

The duration of the asset.

var providesPreciseDurationAndTiming: Bool

A Boolean value that indicates whether the asset provides precise timing.

var naturalSize: CGSize

The encoded or authored size of the visual portion of the asset.

var preferredRate: Float

The natural rate at which the asset is to be played.

var preferredTransform: CGAffineTransform

The preferred transform to apply to the visual content of the asset for presentation or processing.

var preferredVolume: Float

The preferred volume at which the audible media of the asset is to be played.

var preferredDisplayCriteria: AVDisplayCriteria

The display criteria that define the optimal TV display mode for the asset.

class AVDisplayCriteria

An object containing properties that define the display criteria for a media asset.

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