Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get the name of the track Windows Media Player is currently playing?

I'd like to query Windows Media player from an external app to find out what track (album and artist) it's currently playing.

Is that information exposed anywhere?

like image 852
Mendokusai Avatar asked Jan 31 '26 08:01

Mendokusai


1 Answers

One way to do it would be to write a Windows Media Player plug-in. There's an API for doing this at http://msdn.microsoft.com/en-us/library/bb262326(VS.85).aspx. And some info on how to update the plugin wizard to Visual Studio 2008 here.

A background User Interface plugin could write the info you want, such as the currently playing track, title, etc., to a file that you monitor. The UI plugin is simply an object that implements IWMPPluginUI.

like image 177
CLaRGe Avatar answered Feb 03 '26 03:02

CLaRGe