Class

AVQueuePlayer

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

Declaration

@interface AVQueuePlayer : AVPlayer

Overview

Use this class to create and manage a queue of player items composed 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

- initWithItems:

Creates a queue player with player items from the specified array.

+ queuePlayerWithItems:

Returns an instance of AVQueuePlayer initialized to play items from a given array.

Managing the Player Queue

- items

Returns an array of the currently enqueued items.

- advanceToNextItem

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

- canInsertItem:afterItem:

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

- insertItem:afterItem:

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

- removeItem:

Removes a given player item from the queue.

- removeAllItems

Removes all player items from the queue.

Automatically Looping an Item

AVPlayerLooper

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

Relationships

Inherits From

See Also

Media Playback

AVPlayer

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

AVPlayerLayer

An object that manages a player's visual output.

AVPlayerItem

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

AVPlayerItemMetadataCollector

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

AVPlayerItemTrack

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

AVSynchronizedLayer

An object used to synchronize with a specific player item.

AVPlayerMediaSelectionCriteria

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

AVSampleBufferAudioRenderer

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

AVSampleBufferDisplayLayer

An object that displays compressed or uncompressed video frames.

AVSampleBufferRenderSynchronizer

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

AVRouteDetector

An object that detects the presences of media playback routes.