Instance Method


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


- (void)insertItem:(AVPlayerItem *)item afterItem:(AVPlayerItem *)afterItem;



The player item to be inserted.


The player item that the newly inserted player item should follow in the queue. Pass nil to append the item to the queue.

See Also

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.

- removeItem:

Removes a given player item from the queue.

- removeAllItems

Removes all player items from the queue.