Instance Method

metadata(forFormat:)

Creates an array of metadata objects, one for each metadata item in the container of the specified format.

Declaration

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

Parameters

format

The metadata format for which items are requested.

Return Value

An array of AVMetadataItem objects, one for each metadata item in the container of the format specified by format, or an empty array if there is no metadata for the specified format.

Discussion

You can call this method without blocking after availableMetadataFormats has been loaded.

See Also

Managing Metadata

var metadata: [AVMetadataItem]

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

var commonMetadata: [AVMetadataItem]

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

var availableMetadataFormats: [AVMetadataFormat]

An array containing the metadata formats available for the track.

struct AVMetadataFormat

A value that defines a metadata format.