Class

AVPlayerMediaSelectionCriteria

An object that specifies the preferred languages and media characteristics for a player.

Declaration

class AVPlayerMediaSelectionCriteria : NSObject

Overview

The languages and media characteristics of assets containing media selection options that an AVPlayer instance should attempt to select automatically when preparing and playing items. The languages and media characteristics are specified in the preferred order.

Topics

Creating Media Selection Criteria

init(preferredLanguages: [String]?, preferredMediaCharacteristics: [AVMediaCharacteristic]?)

Returns an initialized media selection criteria instance with the specified settings.

Media Selection Criteria Settings

var preferredLanguages: [String]?

The array of preferred languages in the order of desirability.

var preferredMediaCharacteristics: [AVMediaCharacteristic]?

The array of preferred media characteristics in the order of desirability.

Relationships

Inherits From

Conforms To

See Also

Media Playback

class AVPlayer

An object that provides the interface to control the player’s transport behavior.

class AVQueuePlayer

A player used to play a number of items in sequence.

class AVPlayerLayer

An object that manages a player's visual output.

class AVPlayerItem

An object used to model the timing and presentation state of an asset played by the player.

class AVPlayerItemTrack

An object used to modify the presentation state of an asset track being presented by a player.

class AVSynchronizedLayer

An object used to synchronize with a specific player item.

class AVPlayerItemMetadataCollector

An object used to capture the date range metadata defined for an HTTP Live Streaming asset.

class AVSampleBufferAudioRenderer

An object used to decompress audio and play compressed or uncompressed audio.

class AVSampleBufferDisplayLayer

An object that displays compressed or uncompressed video frames.

class AVSampleBufferRenderSynchronizer

An object used to synchronize multiple queued sample buffers to a single timeline.