Type Method

playableMediaSelectionOptionsFromArray:

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

Declaration

+ (NSArray<AVMediaSelectionOption *> *)playableMediaSelectionOptionsFromArray:(NSArray<AVMediaSelectionOption *> *)mediaSelectionOptions;

Parameters

array

An array of AVMediaSelectionOption objects to be filtered by playability.

Return Value

An array containing the media selection options from array that are playable.

See Also

Filtering Selection Options

- makeNowPlayingInfoLanguageOptionGroup

Creates a language option group from the media selection group.

+ 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.