0

Possible Duplicate:
Download music file from server and save in my app

I need only one thing to finish my program, please help.

My app is streaming music from a server, and I need to put button so that if the user presses it the music will start downloading. After it finishes downloading, it saves the file in his iPhone and he can play it from his iPhone. Any code I appreciate your help.

Community
  • 1
  • 1
DAVEd
  • 51
  • 2
  • 8

1 Answers1

0

You will need to use NSURLRequest and NSURLConnection to download the file, and use NSData using AVAudioPlayer to play the file.

Priyank
  • 10,503
  • 2
  • 27
  • 25
  • any code please, coz I tried this but does not work with me. – DAVEd Apr 09 '11 at 03:11
  • Hopefully you will find something here:- http://stackoverflow.com/questions/5620849/how-to-download-a-music-file-from-the-server-and-save-it-in-my-application – Priyank Apr 11 '11 at 17:33