Type Method

queuePlayerWithItems:

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

Declaration

+ (instancetype)queuePlayerWithItems:(NSArray<AVPlayerItem *> *)items;

Parameters

items

An array of AVPlayerItem objects with which to initially populate the player’s queue.

Return Value

An instance of AVQueuePlayer initialized to play the player items in items.

See Also

Creating a Queue Player

- initWithItems:

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