title: IOS 8 Swift AVAudioPlayer play remote audio (wowza server)
body: <p>I am not an IOS programmer but I need a simple app to play an audio stream from a wowza server. Here is my code, I get no errors but also no audio. Any guidances or help?</p>
  
  <pre><code>    import UIKit
      import AVFoundation
  
      class ViewController: UIViewController {
  
           var player = AVAudioPlayer()
  
          override func viewDidLoad() {
              super.viewDidLoad()
  
              var fileURL: NSURL = NSURL(string: "http://url----.com/playlist.m3u8")
  
              var error:NSError?
              player = AVAudioPlayer(contentsOfURL: fileURL, error: &amp;error)
  
              if player.prepareToPlay() &amp;&amp; player.play(){
                  println("yes")
              } else {
                  println("no")
              }
          }
  </code></pre>