Get MP3 info from remote file
-
22-07-2019 - |
Question
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.
Solution
It's not possible with remote mp3 file... :(
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow