Instance Method

selectMediaOptionAutomaticallyInMediaSelectionGroup:

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

Declaration

- (void)selectMediaOptionAutomaticallyInMediaSelectionGroup:(AVMediaSelectionGroup *)mediaSelectionGroup;

Parameters

mediaSelectionGroup

The media selection group, obtained from the receiver's asset, that contains the specified option.

Discussion

This method has no effect unless the appliesMediaSelectionCriteriaAutomatically property of the associated AVPlayer is YES and unless automatic media selection has previously been overridden by invoking selectMediaOption:inMediaSelectionGroup:.

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.

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
- selectedMediaOptionInMediaSelectionGroup:

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

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software