---
title: "effectiveMediaPresentationSettings(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritem/effectivemediapresentationsettings(for:)"
---

# effectiveMediaPresentationSettings(for:)

Indicates the media presentation settings with media characteristics that are possessed by the currently selected AVMediaSelectionOption in the specified AVMediaSelectionGroup.

## Declaration

```swift
func effectiveMediaPresentationSettings(for mediaSelectionGroup: AVMediaSelectionGroup) -> [AVMediaPresentationSelector : Any]
```

## Parameters

- `mediaSelectionGroup`: An AVMediaSelectionGroup obtained from the receiver’s asset for which the currently effective media presentation settings are desired.

## Return Value

Return Value A dictionary with AVMediaPresentationSelectors as keys and AVMediaPresentationSettings as values, unless the AVMediaSelectionOption currently selected in the group possesses none of the characteristics associated with the selector’s settings. In that case the dictionary value will be NSNull.

## Discussion

Discussion Effective media presentation settings can differ from the currently effective media presentation settings if no AVMediaSelectionOption of the specified AVMediaSelectionGroup with the currently selected media presentation language possesses all of the characteristics associated with the currently selected settings. A value of NSNull for an AVMediaPresentationSelector can occur if either the content is inappropriately authored for the use of the AVCustomMediaSelectionScheme or if the currently selected AVMediaSelectionOption has been selected by means other than through the use of AVMediaPresentationSettings.

## See Also

### Selecting media options

- [select(_:for:)](avfoundation/avplayeritem/select(_:for:).md)
- [preferredCustomMediaSelectionSchemes](avfoundation/avplayeritem/preferredcustommediaselectionschemes.md)
- [selectMediaPresentationLanguage(_:for:)](avfoundation/avplayeritem/selectmediapresentationlanguage(_:for:).md)
- [selectedMediaPresentationLanguage(for:)](avfoundation/avplayeritem/selectedmediapresentationlanguage(for:).md)
- [selectedMediaPresentationSettings(for:)](avfoundation/avplayeritem/selectedmediapresentationsettings(for:).md)
- [currentMediaSelection](avfoundation/avplayeritem/currentmediaselection.md)
- [select(_:in:)](avfoundation/avplayeritem/select(_:in:).md)
- [selectMediaOptionAutomatically(in:)](avfoundation/avplayeritem/selectmediaoptionautomatically(in:).md)
