You can use MPMovieplayerviewcontroller. It is perfect for streaming audio/video. I am also
use this for streaming audio in one of my App & also it looks like default player of iPhone.
Ok here is coding for use of this player as I am doing in my project:
NSString *geturl = [[radiotablearray objectAtIndex:btntag]objectForKey:@"iurl"];
NSLog(@"geturl..%@",geturl);
NSURL *fileURL=[NSURL URLWithString:geturl];
NSLog(@"fileURL..%@",fileURL);
moviePlayerController = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];
[moviePlayerController.moviePlayer prepareToPlay];
moviePlayerController.moviePlayer.shouldAutoplay=YES;
moviePlayerController.view.frame = self.view.frame;
[self presentMoviePlayerViewControllerAnimated:moviePlayerController];
[moviePlayerController.moviePlayer play];
Also add mediaplayer & Avfoundation framework in App.And add or import these two in .h file:
#import
#import
& import #import
this in .m file. also make property of player like below in .h file:
MPMoviePlayerViewController *moviePlayerController;
@property(strong,retain) MPMoviePlayerViewController *moviePlayerController;
And add method where you want but also make changes in code according to your need I am just send you my implement code you just change it with your requirement. Best of luck.