Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMediaSelectionOptionMBS class.

AVMediaSelectionOptionMBS.associatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup as AVMediaSelectionGroupMBS) as AVMediaSelectionOptionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
If a media selection option in another group is associated with the specified option, returns a reference to the associated option.

mediaSelectionGroup: A media selection group in which an associated option is to be sought.

Returns an instance of AVMediaSelectionOption.

Audible media selection options often have associated legible media selection options; in particular, audible options are typically associated with forced-only subtitle options with the same locale. See AVMediaCharacteristicContainsOnlyForcedSubtitles in AVMediaFormat.h for a discussion of forced-only subtitles.

AVMediaSelectionOptionMBS.availableMetadataFormats as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an NSArray of NSStrings, each representing a metadata format that contains metadata associated with the option (e.g. ID3, iTunes metadata, etc.).

AVMediaSelectionOptionMBS.commonMetadata as AVMetadataItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an array of AVMetadataItems for each common metadata key for which a value is available.

AVMediaSelectionOptionMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The private construtor.

AVMediaSelectionOptionMBS.copy as AVMediaSelectionOptionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the object.

AVMediaSelectionOptionMBS.displayNameWithLocale(locale as NSLocaleMBS) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an string suitable for display.

Available on Mac OS X 10.9 or newer.
Localize manufactured portions of the string using the specificed locale.
May use this option's common metadata, media characteristics and locale properties in addition to the provided locale to formulate an NSString intended for display.

AVMediaSelectionOptionMBS.hasMediaCharacteristic(mediaCharacteristic as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Reports whether the media selection option includes media with the specified media characteristic.

The media characteristic of interest, e.g. AVMediaCharacteristicVisual, AVMediaCharacteristicAudible, AVMediaCharacteristicLegible, etc.
Returns ture if the media selection option includes media with the specified characteristic, otherwise false.

AVMediaSelectionOptionMBS.mediaSubTypes as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The mediaSubTypes of the media data associated with the option.

An Array of numbers carrying four character codes as defined in CoreAudioTypes.h for audio media and in CMFormatDescription.h for video media. Also see CMFormatDescriptionGetMediaSubType in CMFormatDescription.h for more information about media subtypes.

Note that if no information is available about the encoding of the media presented when a media option is selected, the value of mediaSubTypes will be an empty array. This can occur, for example, with streaming media. In these cases the value of mediaSubTypes should simply not be used as a criteria for selection.

AVMediaSelectionOptionMBS.metadataForFormat(Format as string) as AVMetadataItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Provides an Array of AVMetadataItems, one for each metadata item in the container of the specified format.

format: The metadata format for which items are requested.
An Array containing AVMetadataItems; may be nil if there is no metadata of the specified format.

AVMediaSelectionOptionMBS.propertyList as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a serializable property list that can be used to obtain an instance of AVMediaSelectionOption representing the same option as the receiver via AVMediaSelectionGroup.mediaSelectionOptionWithPropertyList.

Returns a serializable property list that's sufficient to identify the option within its group. For serialization utilities, see NSPropertyList.h.

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


The biggest plugin in space...