selectMediaOptionAutomatically(in:)
Selects the media option in the specified media selection group that best matches the receiver’s automatic selection criteria.
Declaration
nonisolated func selectMediaOptionAutomatically(in mediaSelectionGroup: AVMediaSelectionGroup)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 true and unless automatic media selection has previously been overridden by invoking select(_:in:).