<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMediaSelectionOption"
  },
  "title" : "AVMediaSelectionOption"
}
-->

# AVMediaSelectionOption

An object that represents a specific option for the presentation of media within a group of options.

```
class AVMediaSelectionOption
```

## Topics

### Accessing media information

[`mediaType`](/documentation/AVFoundation/AVMediaSelectionOption/mediaType)

The media type of the media data.

[`mediaSubTypes`](/documentation/AVFoundation/AVMediaSelectionOption/mediaSubTypes)

The media sub-types of the media data associated with the option.

[`hasMediaCharacteristic(_:)`](/documentation/AVFoundation/AVMediaSelectionOption/hasMediaCharacteristic(_:))

Returns a Boolean value that indicates whether the receiver has media with the given media characteristic.

### Managing metadata

[`commonMetadata`](/documentation/AVFoundation/AVMediaSelectionOption/commonMetadata)

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

[`availableMetadataFormats`](/documentation/AVFoundation/AVMediaSelectionOption/availableMetadataFormats)

The metadata formats that contain metadata associated with the option.

[`metadata(forFormat:)`](/documentation/AVFoundation/AVMediaSelectionOption/metadata(forFormat:))

Returns an array of metadata items—one for each metadata item in the container of a given format.

### Determining playability

[`isPlayable`](/documentation/AVFoundation/AVMediaSelectionOption/isPlayable)

A Boolean value that indicates whether the media selection option is playable.

### Getting the language and locale settings

[`displayName`](/documentation/AVFoundation/AVMediaSelectionOption/displayName)

A string suitable for display using the current system locale.

[`displayName(with:)`](/documentation/AVFoundation/AVMediaSelectionOption/displayName(with:))

Returns a string suitable for display using the specified locale.

[`locale`](/documentation/AVFoundation/AVMediaSelectionOption/locale)

The locale for which the media option was authored.

[`extendedLanguageTag`](/documentation/AVFoundation/AVMediaSelectionOption/extendedLanguageTag)

The IETF BCP 47 language tag associated with the option

### Getting the associated media selection option

[`associatedMediaSelectionOption(in:)`](/documentation/AVFoundation/AVMediaSelectionOption/associatedMediaSelectionOption(in:))

Returns a media selection option associated with the receiver in a given group.

### Creating a Now Playing language option

[`makeNowPlayingInfoLanguageOption()`](/documentation/AVFoundation/AVMediaSelectionOption/makeNowPlayingInfoLanguageOption())

Creates a language option for a media selection option.

### Creating a property list representation

[`propertyList()`](/documentation/AVFoundation/AVMediaSelectionOption/propertyList())

Returns a serializable property list that’s sufficient to identify the option within its group.



---

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)