I´m programming a little media player with a song library.
Now I need to get the properties of a mp3,wma file, like the artist name or the song duration.
What is the best way to get this information?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can examine the
ID3tag of the mp3s. The taglib-sharp library is great for doing so. Source code available (here). Example code:Not sure if tag-lib supports .wma though… Tag-lib can however be ported to silverlight (if needed).