title: When Video plays using AVPLayer, it stops background music ios
body: <p>I am playing video using <code>AVPlayer</code>, it stops iPhone's music which is on going in background. Please help me to resolve</p>
  
  <pre><code>let item1 = AVPlayerItem.init(URL: NSURL(string:path))
  player = AVPlayer(playerItem: item1)
  layer?.player = player;
  player?.play()
  </code></pre>