Search code examples
windowsaudiowindows-media-player

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?


Solution

  • 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.