---
title: "mediaSelectionOptions(from:withoutMediaCharacteristics:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avmediaselectiongroup/mediaselectionoptions(from:withoutmediacharacteristics:)"
---

# mediaSelectionOptions(from:withoutMediaCharacteristics:)

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

## Declaration

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

## Parameters

- `mediaSelectionOptions`: An array of doc://com.apple.avfoundation/documentation/AVFoundation/AVMediaSelectionOption objects to be filtered.
- `mediaCharacteristics`: The media characteristics that must not be present for a media selection option to be present in the output array.

## Return Value

Return Value An array containing the media selection options from array that lack the media characteristics in mediaCharacteristics.

## See Also

### Filtering selection options

- [playableMediaSelectionOptions(from:)](avfoundation/avmediaselectiongroup/playablemediaselectionoptions(from:).md)
- [mediaSelectionOptions(from:with:)](avfoundation/avmediaselectiongroup/mediaselectionoptions(from:with:).md)
- [mediaSelectionOptions(from:withMediaCharacteristics:)](avfoundation/avmediaselectiongroup/mediaselectionoptions(from:withmediacharacteristics:).md)
- [mediaSelectionOptions(from:filteredAndSortedAccordingToPreferredLanguages:)](avfoundation/avmediaselectiongroup/mediaselectionoptions(from:filteredandsortedaccordingtopreferredlanguages:).md)
- [customMediaSelectionScheme](avfoundation/avmediaselectiongroup/custommediaselectionscheme.md)
