Class

AVMediaSelectionGroup

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

Declaration

@interface AVMediaSelectionGroup : NSObject

Topics

Accessing Options

options

A collection of mutually exclusive media selection options

- mediaSelectionOptionWithPropertyList:

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

defaultOption

The default option in the group.

Configuring Empty Selection

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

- makeNowPlayingInfoLanguageOptionGroup

Creates a language option group from the media selection group.

+ playableMediaSelectionOptionsFromArray:

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

+ mediaSelectionOptionsFromArray:withLocale:

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

+ mediaSelectionOptionsFromArray:withMediaCharacteristics:

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

+ mediaSelectionOptionsFromArray:withoutMediaCharacteristics:

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

+ mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages:

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

Relationships

Inherits From

Conforms To

See Also

Media Selection

Adding Subtitles and Alternative Audio Tracks

Extend your app's appeal to users by adding subtitles and alternative audio tracks in their native language.

AVMediaSelection

An object that represents a complete rendition of media selection options on an asset.

AVMediaSelectionOption

An object that represents a specific option for the presentation of media within a group of options.

AVMutableMediaSelection

A mutable object that represents a complete rendition of media selection options on an asset.