<!--
{
  "availability" : [
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVInterfaceMediaSelectionOptionSource",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVInterfaceMediaSelectionOptionSource"
  },
  "title" : "AVInterfaceMediaSelectionOptionSource"
}
-->

# AVInterfaceMediaSelectionOptionSource

Represents a media selection option for audio tracks or subtitle tracks.

```
@interface AVInterfaceMediaSelectionOptionSource : NSObject
```

## Overview

This class represents individual media options (such as audio tracks or subtitle tracks)
that can be selected by the user in media playback interfaces. Each option provides
display information and metadata for user selection.

## Topics

### Instance Properties

[`@property (nonatomic, copy, readonly) NSString * displayName;`](/documentation/AVKit/AVInterfaceMediaSelectionOptionSource/displayName)

Human-readable name for this media option displayed in user interfaces (e.g., “English”, “Spanish (Latin America)”, “Director’s Commentary”).

[`@property (nonatomic, copy, readonly, nullable) NSString * extendedLanguageTag;`](/documentation/AVKit/AVInterfaceMediaSelectionOptionSource/extendedLanguageTag)

IETF BCP 47 language identifier (e.g., “en-US”, “es-419”, “zh-Hans-CN”) indicating the primary language and locale of this option.
This standardized tag provides detailed language information including region, script, and variants. May be empty for language-neutral content such as music-only audio tracks, sound effects, or visual-only subtitles without spoken content.

[`@property (nonatomic, copy, readonly) NSString * identifier;`](/documentation/AVKit/AVInterfaceMediaSelectionOptionSource/identifier)

Unique system identifier for this media option, used for programmatic selection and persistence across sessions.

### Instance Methods

[`- (instancetype) initWithDisplayName:(NSString *) displayName identifier:(NSString *) identifier extendedLanguageTag:(NSString *) extendedLanguageTag;`](/documentation/AVKit/AVInterfaceMediaSelectionOptionSource/initWithDisplayName:identifier:extendedLanguageTag:)

Initializes a new media selection option with the specified attributes.

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)