views:

230

answers:

1

I was playing around with the iPhone SDK and I wanted to get mp3 info from a remote file:

NSString *filepath = @"http://www.server.com/legal.mp3";
CFURLRef audioFileURL = CFURLCreateWithString(NULL, (CFStringRef) filepath, NULL);

AudioFileID audioFile;
if (noErr != AudioFileOpenURL(audioFileURL, fsRdPerm, 0, nil)) {
NSLog(@"Error - : could not open audio file. Path given was: %@", audioFileURL);
}

Why doesn't this work? What am I doing wrong?

Thanks in advance.

A: 

It's not possible with remote mp3 file... :(

Undolog