Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMP Now Playing

Status
Not open for further replies.

adrianjohnson

Programmer
May 16, 2002
145
0
0
GB
Quite a simple question really, but a search on Google & Windows Live hasn't produced much of a result.

How do I capture the track currently playing in Windows Media Player 11?

I've added the reference to WMPLib, but from there on in the examples get complicated. Do I need to add a WMP control to my form and play through that, as I'd prefer to have WMP playing outside of my program.

Thanks,

Adrian

The project is C# 2008, .net 3.5, WMP 11

Adrian Johnson
 
Oops - forgot to add the code I already have:

Code:
using WMPLib;

...

WMPLib.WindowsMediaPlayer Player;
IWMPMedia media;
media = Player.currentMedia;
string test = media.name;

Adrian Johnson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top