title: Associate AVPlayerItem with new AVPlayer in Swift?
body: <p>How can I reassociate an instance of <code>AVPlayerItem</code> with a new <code>AVPlayer</code> in Swift? When used in an initializer. Every time I try to reassign an <code>AVPlayerItem</code> to a different <code>AVPlayer</code> even after I've set all references to the <code>AVPlayer</code> to <code>nil</code> (so it should get garbage collected), it complains that an <code>AVPlayerItem</code> cannot be assigned to more than 1 <code>AVPlayer</code> object. I understand a few ways to get around it but I want to know why <em>this</em> way doesn't work.</p>
  
  <pre><code>let player: AVPlayer = AVPlayer(playerItem: somePlayerItem)
  </code></pre>
  
  <p>I don't know what happens during this declaration but something somewhere gets set to allow somePlayerItem know it has an associated player. Does this have some observer set somewhere or property set that would note this?</p>
  
  <p>Does anyone know a way to reassign this <code>AVPlayerItem</code> to a different <code>AVPlayer</code> after the original <code>AVPlayer</code>'s references have been destroyed? I know I can just make a new <code>AVPlayerItem</code> using the URL but I want to know if I can keep the same object.</p>