开发者

Get MP3 info from remote file

开发者 https://www.devze.com 2022-12-12 19:38 出处:网络
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\";

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: %@", aud开发者_如何学CioFileURL);
}

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

Thanks in advance.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消