title: AVPlayer not playing despite having correct URL
body: <p>I need help from my code since I can't figure out why my AVPlayer can't play the audio.
  Here would be my function:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@IBAction func pausePlayAudio(_ sender: CustomButton) {
      let audioSourceURL: String = "[Site]/module_lesson_uploads/audios/"
      let audioString: String = audioSourceURL + (sender.paramaters["thisAudioURL"] as! String)
      let audioURL = URL(string: audioString)
  
      print(audioString)
  
      let playerItem: AVPlayerItem = AVPlayerItem(url: audioURL!)
      let audioPlayer = AVPlayer(playerItem: playerItem)
  
      audioPlayer.play()
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>it is called here:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>pausePlayButton.addTarget(self, action: #selector(ModuleLessonElementsViewController.pausePlayAudio(_:)), for: .touchUpInside)
  pausePlayButton.paramaters["thisAudioURL"] = content</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here would be the console's result from printing the passed String:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>[Site]/module_lesson_uploads/audios/228F0E3-1576580339.mp3
  2019-12-19 11:54:34.524954+0800 AppUI[3807:70260] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:54:34.688244+0800 AppUI[3807:70259] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:54:34.718316+0800 AppUI[3807:70261] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:54:34.912438+0800 AppUI[3807:70259] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:54:34.913975+0800 AppUI[3807:70259] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  [Site]/module_lesson_uploads/audios/4AB4136-1576647127.mp3
  2019-12-19 11:55:04.511064+0800 AppUI[3807:70259] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:55:04.742723+0800 AppUI[3807:70262] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:55:04.795568+0800 AppUI[3807:70262] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:55:05.042987+0800 AppUI[3807:70262] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection
  2019-12-19 11:55:05.049440+0800 AppUI[3807:70262] [] nw_endpoint_flow_copy_multipath_subflow_counts Called on non-Multipath connection</code></pre>
  </div>
  </div>
  </p>
  
  <p>It seems to be working, but the audio was not playing. Any help or explanation would be greatly appreciated! </p>