title: OSStatus error 2003334207 AVAudioPlayer
body: <p>I am trying to play an audio url I get from the iTunes API. They are of type m4a. I save the URL as a string and send it to my playSound function. I have looked at other posts with this error but have not been able to fix mine. </p>
  
  <p>example audio url</p>
  
  <p><a href="https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/Music1/v4/fd/4b/f9/fd4bf91e-2a1d-a946-a2f5-2d828da0f8e5/mzaf_2707169172634594413.plus.aac.p.m4a" rel="nofollow noreferrer">https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/Music1/v4/fd/4b/f9/fd4bf91e-2a1d-a946-a2f5-2d828da0f8e5/mzaf_2707169172634594413.plus.aac.p.m4a</a></p>
  
  <p>I get an error "Error: The operation couldn’t be completed. (OSStatus error 2003334207.)"</p>
  
  <pre><code>func playSound(soundUrl: String) {
      let sound = NSURL(fileURLWithPath: soundUrl)
      do {
          let audioPlayer = try AVAudioPlayer(contentsOf: sound as URL)
          audioPlayer.delegate = self as? AVAudioPlayerDelegate
          audioPlayer.prepareToPlay()
          audioPlayer.play()
      }catch let error {
          print("Error: \(error.localizedDescription)")
      }
  }
  </code></pre>