Instance Method

initWithItems:

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

Declaration

- (AVQueuePlayer *)initWithItems:(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

+ queuePlayerWithItems:

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