<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMediaSelectionGroup/mediaSelectionOptions(from:withMediaCharacteristics:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMediaSelectionGroup(cm)mediaSelectionOptionsFromArray:withMediaCharacteristics:"
  },
  "title" : "mediaSelectionOptions(from:withMediaCharacteristics:)"
}
-->

# mediaSelectionOptions(from:withMediaCharacteristics:)

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

```
class func mediaSelectionOptions(from mediaSelectionOptions: [AVMediaSelectionOption], withMediaCharacteristics mediaCharacteristics: [AVMediaCharacteristic]) -> [AVMediaSelectionOption]
```

## Parameters

`mediaSelectionOptions`

An array of [`AVMediaSelectionOption`](/documentation/AVFoundation/AVMediaSelectionOption) objects to be filtered.

`mediaCharacteristics`

The media characteristics that must be matched for a media selection option to be present in the output array.

## Return Value

An array containing the media selection options from `array` that match `mediaCharacteristics`.

## Discussion

---

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)