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

# AVMediaSelectionGroup

An object that represents a collection of mutually exclusive options for the presentation of media within an asset.

```
class AVMediaSelectionGroup
```

## Topics

### Accessing media selection options

[`options`](/documentation/AVFoundation/AVMediaSelectionGroup/options)

A collection of mutually exclusive media selection options

[`-  mediaSelectionOptionWithPropertyList:`](/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOption(withPropertyList:))

Returns the media selection options that match the given property list.

[`defaultOption`](/documentation/AVFoundation/AVMediaSelectionGroup/defaultOption)

The default option in the group.

### Configuring empty selection behavior

[`allowsEmptySelection`](/documentation/AVFoundation/AVMediaSelectionGroup/allowsEmptySelection)

A Boolean value that indicates whether it’s possible to present none of the options in the group when an associated player item is played.

### Filtering selection options

[`+  playableMediaSelectionOptionsFromArray:`](/documentation/AVFoundation/AVMediaSelectionGroup/playableMediaSelectionOptions(from:))

Returns an array containing the media selection options from a given array that are playable.

[`+  mediaSelectionOptionsFromArray:withLocale:`](/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOptions(from:with:))

Returns an array containing the media selection options from a given array that match the specified locale.

[`+  mediaSelectionOptionsFromArray:withMediaCharacteristics:`](/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOptions(from:withMediaCharacteristics:))

Returns an array containing the media selection options from a given array that match given media characteristics.

[`+  mediaSelectionOptionsFromArray:withoutMediaCharacteristics:`](/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOptions(from:withoutMediaCharacteristics:))

Returns an array containing the media selection options from a given array that do not match given media characteristics.

[`+  mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages:`](/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOptions(from:filteredAndSortedAccordingToPreferredLanguages:))

Returns an array of media selection options, filtering them according to whether their locales match one of the specified languages.

[`customMediaSelectionScheme`](/documentation/AVFoundation/AVMediaSelectionGroup/customMediaSelectionScheme)

For content that has been authored with the express intent of offering an alternative selection interface for AVMediaSelectionOptions, AVCustomMediaSelectionScheme provides a collection of custom settings for controlling the presentation of the media.

### Creating a Now Playing language option group

[`-  makeNowPlayingInfoLanguageOptionGroup`](/documentation/AVFoundation/AVMediaSelectionGroup/makeNowPlayingInfoLanguageOptionGroup())

Creates a language option group from the media selection group.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

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

### Inherited By

[`AVAssetWriterInputGroup`](/documentation/AVFoundation/AVAssetWriterInputGroup)

---

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)