Class

AVQueuePlayer

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

Overview

Use this class to create and manage a queue of player items comprised of local or progressively downloaded file-based media, such as QuickTime movies or MP3 audio files, as well as media served using HTTP Live Streaming.

Topics

Creating a Queue Player

init(items: [AVPlayerItem])

Initializes an instance of AVQueuePlayer by enqueueing the player items from the specified array.

Managing the Player Queue

func items()

Returns an array of the currently enqueued items.

func advanceToNextItem()

Ends playback of the current item and initiates playback of the next item in the player’s queue.

func canInsert(AVPlayerItem, after: AVPlayerItem?)

Returns a Boolean value that indicates whether a given player item can be inserted into the player’s queue.

func insert(AVPlayerItem, after: AVPlayerItem?)

Places a player item after another player item in the queue.

func remove(AVPlayerItem)

Removes a given player item from the queue.

func removeAllItems()

Removes all player items from the queue.

Automatically Looping an Item

class AVPlayerLooper

An object that simplifies the playing of looping media content using a queue player.

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 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 AVPlayerMediaSelectionCriteria

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

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.