Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mathan

macrumors newbie
Original poster
Jul 21, 2008
1
0
Hi all,

I want to get a stream of mp3 file [Ex: www.abc.com/audiofile.mp3].
my code snippet:

NSMutableURLRequest *urlRequest = [[[NSMutableURLRequest alloc] init] autorelease];
[urlRequest setHTTPShouldHandleCookies:YES];

[urlRequest setURL:[NSURL URLWithString:mad:"http://www.abc.com/audiofile.mp3"]];
[urlRequest setHTTPMethod:mad:"POST"];
[urlRequest setHTTPBody:postData];

NSData *requestedData = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&urlResponse error:&theError];

and I am trying to feed the response data to AudioFileStreamParseBytes

Is It the right method ?

Canany one suggest the proper way and any sample codes.I am very new to this area.......
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.