Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMediaSelectionGroupMBS class.

AVMediaSelectionGroupMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true on Mac OS X 10.7 and newer.

AVMediaSelectionGroupMBS.mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions() as AVMediaSelectionOptionMBS) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to whether their locales match any language identifier in the specified array of preferred languages. The returned array is sorted according to the order of preference of the language each matches.

mediaSelectionOptions: An array of AVMediaSelectionOptions to be filtered and sorted.
preferredLanguages: An array of language identifiers in order of preference, each of which is an IETF BCP 47 (RFC 4646) language identifier. Use NSLocaleMBS.preferredLanguages to obtain the user's list of preferred languages. Plugins passes NSLocaleMBS.preferredLanguages if you don't provide an array of languages.

Returns an instance of NSArray containing media selection options of the specified NSArray that match a preferred language, sorted according to the order of preference of the language each matches.

See also:

AVMediaSelectionGroupMBS.mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions() as AVMediaSelectionOptionMBS, preferredLanguages() as string) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to whether their locales match any language identifier in the specified array of preferred languages. The returned array is sorted according to the order of preference of the language each matches.

mediaSelectionOptions: An array of AVMediaSelectionOptions to be filtered and sorted.
preferredLanguages: An array of language identifiers in order of preference, each of which is an IETF BCP 47 (RFC 4646) language identifier. Use NSLocaleMBS.preferredLanguages to obtain the user's list of preferred languages. Plugins passes NSLocaleMBS.preferredLanguages if you don't provide an array of languages.

Returns an instance of NSArray containing media selection options of the specified NSArray that match a preferred language, sorted according to the order of preference of the language each matches.

See also:

AVMediaSelectionGroupMBS.mediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions() as AVMediaSelectionOptionMBS, locale as NSLocaleMBS) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to locale.

mediaSelectionOptions: An array of AVMediaSelectionOption to be filtered by locale.
locale: The NSLocale that must be matched for a media selection option to be copied to the output array.
Returns an instance of Array containing the media selection options of the specified Array that match the specified locale.

AVMediaSelectionGroupMBS.mediaSelectionOptionsFromArrayWithMediaCharacteristics(mediaSelectionOptions() as AVMediaSelectionOptionMBS, mediaCharacteristics() as string) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to one or more media characteristics.

mediaSelectionOptions: An array of AVMediaSelectionOptions to be filtered by media characteristic.
mediaCharacteristics: The media characteristics that must be matched for a media selection option to be copied to the output array.

Returns an instance of NSArray containing the media selection options of the specified NSArray that match the specified media characteristics.

AVMediaSelectionGroupMBS.mediaSelectionOptionsFromArrayWithoutMediaCharacteristics(mediaSelectionOptions() as AVMediaSelectionOptionMBS, mediaCharacteristics() as string) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to whether they lack one or more media characteristics.

mediaSelectionOptions: An array of AVMediaSelectionOptions to be filtered by media characteristic.
mediaCharacteristics: The media characteristics that must not be present for a media selection option to be copied to the output array.
Returns an instance of NSArray containing the media selection options of the specified NSArray that lack the specified media characteristics.

AVMediaSelectionGroupMBS.playableMediaSelectionOptionsFromArray(mediaSelectionOptions() as AVMediaSelectionOptionMBS) as AVMediaSelectionOptionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Filters an array of AVMediaSelectionOptions according to whether they are playable.

mediaSelectionOptions: An array of AVMediaSelectionOption to be filtered according to whether they are playable.

Returns an instance of NSArray containing the media selection options of the specified NSArray that are playable.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...