mp3 uploaded via file API won't play with AVPlayer

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()
	}
}

Hi Brad,

We’re currently investigating this problem. There appears to be some differences between our system and Amazon’s when it comes to returning media content.

Regards,
Mark

Thank you, Mark. Can you provide any visibility into scheduling? I know you have to balance many priorities. I’m just trying to gauge whether or not to invest the time to integrate with AWS for our file management needs instead.

Hi Brad,

I apologize, but I cannot estimate it at this point. There is quite a backlog of support issues as well as features and improvements. If you can workout a solution where you host files in S3, it would be the best so we do not hold you up.

Regards,
Mark