I’ve uploaded an mp3 file via the file API. It plays in a browser. It does not play using AVPlayer in iOS. I created a simple test to compare playback of an mp3 served up from Amazon’s S3 and Backendless. You can toggle the two streamingURL assignment lines to see the difference in behavior. And you can copy and paste the URLs into a browser for successful playback there.
The playback is failing silently. I don’t get any errors or “failed” status on the AVPlayer.
import UIKit
import AVFoundation
class ViewController: UIViewController {
var player: AVPlayer!
override func viewDidLoad() {
super.viewDidLoad()
let steamingURL:NSURL! = NSURL(string:"https://api.backendless.com/3328fb92-a6ca-6c0c-ffed-f889b8aa8400/v1/files/audio/bc09d939ee90cb172741dec6a3fc40f5.mp3")
// let steamingURL:NSURL! = NSURL(string:"[url=https://s3.amazonaws.com/kargopolov/kukushka.mp3]https://s3.amazonaws.com/kargopolov/kukushka.mp3[/url]")
player = AVPlayer(URL: steamingURL)
player.play()
}
}