Instance Method

selectedMediaOptionInMediaSelectionGroup:

Returns the media selection option that's currently selected from the specified group.

Declaration

- (AVMediaSelectionOption *)selectedMediaOptionInMediaSelectionGroup:(AVMediaSelectionGroup *)mediaSelectionGroup;

Parameters

mediaSelectionGroup

A media selection group obtained from the player item’s asset.

Return Value

An instance of AVMediaSelectionOption that describes the currently selected option in the group.

Discussion

If the value of the allowsEmptySelection property of mediaSelectionGroup is YES, the currently selected option in the group may be nil.

See Also

Selecting Media Options

currentMediaSelection

The current media selections for each of the receiver's media selection groups.

- selectMediaOption:inMediaSelectionGroup:

Selects a media option in a given media selection group and deselects all other options in that group.

- selectMediaOptionAutomaticallyInMediaSelectionGroup:

Selects the media option in the specified media selection group that best matches the receiver’s automatic selection criteria.

externalSubtitleOptionLanguages

An array of BCP 47 language codes that supplements the list of subtitle options to be presented to the user.

Deprecated
selectedExternalSubtitleOptionLanguage

The BCP 47 language code of the external subtitle option language marked in the user interface.

Deprecated