iPhone: aplicación de radio simple

i am made a simple radio app which call out safari to stream audio/radio. My problem is that i don't konw how to get back control and show other content while safari is playing music. Of course i do not want the user to have to get out of the app and re-enter. I am thinking a tabbed app but i need your help to regain control.

NSURL *url = [NSURL URLWithString:@"http://www.piratefm.gr/128.m3u"];
NSURLRequest *req = [NSURLRequest requestWithURL:url];
[webView loadRequest:req];
[super viewDidLoad];

preguntado el 08 de noviembre de 11 a las 12:11

hm, what about media- or audio-player? see AV Foundation -

I can not understand how am i going to implement those players for e-radio use... -

1 Respuestas

Use an AVAudioPlayer and init it with the URL

respondido 09 nov., 11:19

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.