tags:

views:

131

answers:

1

I have downloaded a mp3 file from a server successfully, but the problem I encountered is, I don't know how to play that file.. Should I use AVAudioPlayer or AudioQueue to play the file?? I will be appreciate if you could post some sample code here. Thanks a lot.

A: 

Both AVAudioPlayer and the Audio Queue API can be used to play MP3 files. The AVAudioPlayer is well documented and has a lot of sample code available. So why not give it try first and if that does not work, post a more specific question here.

St3fan
ok I'll give it a try, but my XCode told me that there is no provisioned iphone OS device is connected, I am struggling to this issue, do you have an idea of this problem?? my iphone FW is 3.1.3, Xcode is 3.2.2(pre-released)
Georg
ok I solved the problem after installed older version back
Georg
I've finally play the MP3 file DL from server and store in the device successfully, but a weird issue happens sporadically, the error shows:Error Domain=NSOSStatusErrorDomain Code=1685348671 "Operation could not be completed. (OSStatus error 1685348671.)"the MP3 file couldn't be played and shows above error messages even though the file saved to the device without problem, can anyone tell me what I am missing??
Georg