开发者

Reading ID3 tags from the web with C#

开发者 https://www.devze.com 2023-01-06 14:32 出处:网络
I\'ve seen the TagLib Sharp example of how they read from a Gnome VFS, but does anyone know how or have sample code on how I can read an MP3 file from a website and get the ID3 info?

I've seen the TagLib Sharp example of how they read from a Gnome VFS, but does anyone know how or have sample code on how I can read an MP3 file from a website and get the ID3 info?

So say i have some MP3's and the link is like this: "http://myserver.com/indie/band1.mp3"

I'm trying to us开发者_开发技巧er TagLib Sharp to do this: http://developer.novell.com/wiki/index.php/TagLib_Sharp:_Examples

Thanks in advance!


You would have to download the file locally and then run taglib against the local version.

WebClient Client = new WebClient ();
Client.DownloadFile("http://myserver.com/indie/band1.mp3", "band1.mp3");

you could use the TagLib.File.IFileAbstraction, but I find downloading the file locally to be a lot simpler.

0

精彩评论

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