Class

AVMediaSelectionOption

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

Declaration

@interface AVMediaSelectionOption : NSObject

Topics

Managing Media Types

mediaType

The media type of the media data.

mediaSubTypes

The media sub-types of the media data associated with the option.

- hasMediaCharacteristic:

Returns a Boolean value that indicates whether the receiver has media with the given media characteristic.

Managing Metadata

commonMetadata

An array of metadata items for each common metadata key for which a value is available.

availableMetadataFormats

The metadata formats that contain metadata associated with the option.

- metadataForFormat:

Returns an array of metadata items—one for each metadata item in the container of a given format.

Getting the Selection Playable Status

playable

A Boolean value that indicates whether the media selection option is playable.

Getting the Language and Locale Settings

displayName

A string suitable for display using the current system locale.

- displayNameWithLocale:

Returns a string suitable for display using the specified locale.

locale

The locale for which the media option was authored.

extendedLanguageTag

The IETF BCP 47 language tag associated with the option

Getting the Property List

- propertyList

Returns a serializable property list that’s sufficient to identify the option within its group.

Getting the Associated Media Selection Option

- associatedMediaSelectionOptionInMediaSelectionGroup:

Returns a media selection option associated with the receiver in a given group.

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.

AVMediaSelectionGroup

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

AVMutableMediaSelection

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