View Single Post
Old 4th September 2005, 22:04   #306
vitalyb
Junior Member
 
Join Date: May 2005
Posts: 18
Send a message via ICQ to vitalyb Send a message via AIM to vitalyb Send a message via Yahoo to vitalyb
Hey, you should use the WinAmp Library to get the id3 information:

code:

Array m_MLResult = (Array)wo.MediaLibrary.RunQueryArray("(type == 0)");// AND ((lastplay >= [14 days ago]))");
int m_MLResult_iterator = m_MLResult.GetLowerBound(0);

while(m_MLResult_iterator <= m_MLResult.Length)
{
MediaItem CurrentItem = (MediaItem)m_MLResult.GetValue(m_MLResult_iterator);

Console.Writeline(CurrentItem.Artist);
m_MLResult_iterator++;
}




In the Query you can enter whatever file you need to find.

P.S Naturally you can use foreach to iterate the array instead of for.
vitalyb is offline   Reply With Quote