---
title: commonMetadata
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avmediaselectionoption/commonmetadata
---

# commonMetadata

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

## Declaration

```swift
var commonMetadata: [AVMetadataItem] { get }
```

## Discussion

Discussion You can filter the array of AVMetadataItem objects according to locale using metadataItems(from:with:), key using metadataItems(from:withKey:keySpace:), or language using metadataItems(from:filteredAndSortedAccordingToPreferredLanguages:). Clients that are filtering media selection options by language should be prepared to handle cases in which the extendedLanguageTag property value is nil. Further, they should be prepared to handle cases in which an extendedLanguageTag is present but indicates that the language is “undetermined” (a language value of @“und”, as defined in ISO 639-2).

## See Also

### Managing metadata

- [availableMetadataFormats](avfoundation/avmediaselectionoption/availablemetadataformats.md)
- [metadata(forFormat:)](avfoundation/avmediaselectionoption/metadata(forformat:).md)
