views:

146

answers:

2

Hello,

I am new in iPhone,Anyone tell me please how i play audio uploaded on server. in my application some songs are from local and some others are from Server,Locally i play songs successfully but how i play a audio file from server from AVAudioplayer.

Thanks, Arun

+1  A: 

As documented:

AVAudioPlayer *player = [AVAudioPlayer initWithContentsOfUrl:urlToAudioResource];
[player play];
unset