Assuming the queue has already been initialized, the only method I see to add items into the queue is:
- (void)insertItem:(AVPlayerItem *)item afterItem:(AVPlayerItem *)afterItem
The documentation says Pass nil to append the item to the queue.
So then is it not possible to add an item into the top of the queue? I want to be able to replay what was previously played without removing and requeueing everything up again.
AVPlayerItem *currentItem = [yourAVPlayer currentItem]; [yourAVPlayer insertItem:currentItem afterItem:currentItem];
? Note that you may have to do ` [yourAVPlayer insertItem:[currentItem copy] afterItem:currentItem];`. – Larme