Follow these steps
tbAlbum.Text=file.TagHandler.Album; //get the album of mp3 file
other properties of file.TagHandler are:
file.TagHandler.Artist;
file.TagHandler.Comment;
file.TagHandler.Composer;
file.TagHandler.Disc;
file.TagHandler.Genre;
file.TagHandler.Lyrics;
file.TagHandler.Picture;
file.TagHandler.Title;
file.TagHandler.Track;
file.TagHandler.Year;
Thanks...
Please comment...
- Download C# ID3 library from internet or use "http://sourceforge.net/projects/csid3lib/files/csid3lib/" (Click Download csid3lib-v0.6-src.zip (3.3 MB) ) .
- Once you have downloaded the file,extract it and open id3lib.sln and and rebuild the solution.
- Now click start button to start debugging.
- After that start a new project(C#) and add a window form.
- Right click your project solution and click "add reference".
- Now click Browse button .
- Goto "C:\csid3lib-v0.6-src \id3lib\Mp3Lib\bin\Release" (Here i have extract the zip file in c:\ drive) and select these three files: "Id3Lib.dll", "Mp3Lib.dll", "ICSharpCode.SharpZipLib.dll"
- Now you have added the dll files and can use it.
- Now to extract the information from mp3 file use following code:
tbAlbum.Text=file.TagHandler.Album; //get the album of mp3 file
other properties of file.TagHandler are:
file.TagHandler.Artist;
file.TagHandler.Comment;
file.TagHandler.Composer;
file.TagHandler.Disc;
file.TagHandler.Genre;
file.TagHandler.Lyrics;
file.TagHandler.Picture;
file.TagHandler.Title;
file.TagHandler.Track;
file.TagHandler.Year;
Thanks...
Please comment...
How do I extract the Album Artist?
ReplyDelete