This should get you going:
Add a reference to the WMP.dll
Using using WMPLib;
Thw following code creates a player object and search for all media of Abba.
ItWindowsMediaPlayer player = new WindowsMediaPlayer();
IWMPPlaylist list = player.mediaCollection.getByAuthor("Abba");
for (int i = 0; i < list.count; i++)
{
string s =list.get_Item(i).getItemInfo("Title");
}
"Feldman Alex" wrote:
Hi,
I'm trying to integrate with Windows Media.
I need to get a playlist filterd artist and album
For example i need to get all "Abba" songs from specific Abba's album.
Anyone know how to do it?
Thanks a lot