Instance Property


An array of metadata items for all metadata identifiers for which a value is available.


var metadata: [AVMetadataItem] { get }


The array of AVMetadataItem instances can be filtered according to language using the metadataItems(from:filteredAndSortedAccordingToPreferredLanguages:) method. They can be filtered by identifier using the metadataItems(from:filteredByIdentifier:) method.

See Also

Accessing Metadata

var lyrics: String?

The lyrics of the asset, in a language suitable for the current locale.

var commonMetadata: [AVMetadataItem]

An array of metadata items for each common metadata key for which a value is available.

var availableMetadataFormats: [AVMetadataFormat]

An array of strings, each representing a metadata format that’s available to the asset.

func metadata(forFormat: AVMetadataFormat) -> [AVMetadataItem]

Returns an array of metadata items found in the container with the specified format.

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