views:

35

answers:

1

hi i want read one << mp3 url >> minus 30 sec with button in iphone can i work this with audio foundation

this is my code but its not work

NSString *str = "my url";

NSURL *file =[[NSURL alloc]initFileURLWithPath:str];

AVAudioPlayer *p = [[AVAudioPlayer alloc]initWithContentsOfURL:file error:nil]; [file release];

self.player = p; [p release]; [player prepareToPlay]; [player setDelegate:self];

A: 

http://developer.apple.com/library/ios/#codinghowtos/AudioAndVideo/index.html

take a look

and more is here...

http://salahuddin66.blogspot.com/2010/02/radio-app-example-iphone.html

Aaron Saunders
Thanks , now i know i want one sulotion for streaming url with mp3 format by my code is not work but i want one sample code for my problem not one radio streaming only one button and one sound effect with (url) address ?
Miladbigle
@miladbigle this forum is for you to learn, not for people to write your code for you. The links I provided give the the basis to answer your question, but it looks like you just want someone to do it for you.
Aaron Saunders