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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.