iPhone: AVAudioPlayer unsupported file type

后端 未结 4 1499
一整个雨季
一整个雨季 2020-11-30 03:00

My app downloads an mp3 from our server and plays it back to the user. The file is 64 kbps (which is well within the acceptable range for iPhone if I understand correctly).

4条回答
  •  -上瘾入骨i
    2020-11-30 03:53

    If your product name contains space, you will receive the error.
    My project's product name was: Panorama 1453 TR. initWithContentsOfURL method cannot fetch file path. so it was not working. you can put a breakPoint to NSURL *fileURL = . After a step you can see fileURL what data has.
    I changed to Panorama1453TR , it did work.

提交回复
热议问题