title: Reuse same AVPlayer and AVPlayerLayer or create new ones each time?
body: <p>If you need to play multiple videos in the same view, there are seemingly two approaches: (1) create new AVPlayerLayers and AVPlayers each time; or (2) reuse the same ones.</p>
  
  <p>Assume your class is designed to play multiple videos, and the following code is used to load a new video:</p>
  
  <pre><code>    var player = AVPlayer()
      var playerItem:AVPlayerItem?
      var playerLayer:AVPlayerLayer?
  
      // Get file path to &lt;videoURL&gt;
      videoURL = getFilePath(videoURL)
  
      // Create player &amp; layer
      playerItem = AVPlayerItem(URL: NSURL(fileURLWithPath: videoURL))
      player = AVPlayer(playerItem: playerItem!)
      playerLayer = AVPlayerLayer(player: player)
  </code></pre>
  
  <p>The second option, after creating a AVPlayerLayer and AVPlayer, is to reuse them. So you could replace the last two lines with this:</p>
  
  <pre><code>    player.replaceCurrentItemWithPlayerItem(playerItem!)
  </code></pre>
  
  <p>What are the pros/cons of each option? Is it okay to use option 1, or is that considered wasteful?</p>