integration with Windows Media

  • Thread starter Thread starter Feldman Alex
  • Start date Start date
F

Feldman Alex

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
 
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");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top