<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMediaSelectionOption/commonMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMediaSelectionOption(py)commonMetadata"
  },
  "title" : "commonMetadata"
}
-->

# commonMetadata

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

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

## Discussion

You can filter the array of [`AVMetadataItem`](/documentation/AVFoundation/AVMetadataItem) objects according to locale using [`metadataItems(from:with:)`](/documentation/AVFoundation/AVMetadataItem/metadataItems(from:with:)), key using [`metadataItems(from:withKey:keySpace:)`](/documentation/AVFoundation/AVMetadataItem/metadataItems(from:withKey:keySpace:)), or language using [`metadataItems(from:filteredAndSortedAccordingToPreferredLanguages:)`](/documentation/AVFoundation/AVMetadataItem/metadataItems(from:filteredAndSortedAccordingToPreferredLanguages:)).

Clients that are filtering media selection options by language should be prepared to handle cases in which the [`extendedLanguageTag`](/documentation/AVFoundation/AVMediaSelectionOption/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).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)