all you need is to list the port of your radio, here is one working example: in - (void) viewDidLoad
NSURL *vibes = [NSURL URLWithString:@"http://website.com:8002"]; vPlayer = [[AVPlayer alloc] initWithURL:vibes]; self.myViewVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(20, 330, 280, 50)]; [self.myViewVolume sizeToFit]; [self.view addSubview:self.myViewVolume];
you need to create an instance of AVPlayer in your .m file, here it is vPlayer do not forget to add the AVFoundation project to the project, you can play and stop the stream using [play player] and [stop player]
One of the problems with AVPlayer is the lack of easy volume control, you can add it using mpViewVolume. I am also working on a radio application, and by far, AVPlayer is best played in screaming streams.
source share