I keep getting this error:
'AVPlayerItem can only take up one position in the queue of players at a time.
I NSLog'd elements of the players, and none of them seem equal. In addition, I added this to be sure:
if([player canInsertItem:itemToAdd afterItem:nil])
[player insertItem:itemToAdd afterItem:nil];
When I was not sure if this would work (it could have two identical elements in different memory locations), I wrote a category method to check if the player contains an element or something similar to it. However, I still get the error.
I have seen some reports that people get this error using MPMoviePlayerController, but I am not using this custom class, just from the AVQueuePlayer window.
Any ideas on how to fix this?