title: How do I play 30 seconds of an avplayeritem?
body: <p>I can play the whole entire song, but I want to only play 30 seconds of it. How would I do that?</p>
  
  <pre><code>if let url: String = "hiddingthelink"{
  
          let urlplayer = NSURL(string: url)
          let playeritem = AVPlayerItem(URL:(urlplayer)!)
          player = AVPlayer(playerItem: playeritem)
          self.player.volume = 1.0
          self.player.rate = 1.0
          self.player.play()
      }
  </code></pre>