title: iOS: AVQueuePlayer/AVPlayerItem 'An AVPlayerItem can occupy only one position in a player's queue at a time.'
body: <p>I keep getting this error:</p>
  
  <blockquote>
    <p>'An AVPlayerItem can occupy only one position in a player's queue at a
    time.'</p>
  </blockquote>
  
  <p>I NSLog'd the players items, and none of them seem to be equal. Further, I added this just to be sure:</p>
  
  <pre><code>if([player canInsertItem:itemToAdd afterItem:nil])
   [player insertItem:itemToAdd afterItem:nil];
  </code></pre>
  
  <p>When I wasn't sure if that would work (can have two identical items in different memory locations) I wrote a category method to test if a player contains an item or something identical to it. Yet, I'm still getting the error.</p>
  
  <p>I've seen several posts of people getting this error with MPMoviePlayerController, but I'm not using that custom class, just the out of the box AVQueuePlayer.</p>
  
  <p>Any ideas on how to fix this?</p>