views:

1136

answers:

4

I need to synchronize Windows Media Player with my application. I want to show the current song that WMP is playing in a ListBox in real time, with updates when WMP changes songs. How can I implement this?

A: 

Poll HKEY_CURRENT_USER\SOFTWARE\Microsoft\MediaPlayer\Player\RecentFileList\File perhaps.

Stuart Dunkeld
Hi Stuart,i store the songs from a folder and this folder will be update each week.Thanks for you reply
JayJay
+1  A: 

A bit of sniffing around in Google gave me this: http://brandon.fuller.name/archives/hacks/nowplaying/wmp/, it looks like you need to write a plugin for WMP that exposes the information to your application. Depending on what you need/cost, the Plugin on that page might do the job!

Rob
A: 

We've controlled Windows Media Player through the Windows Media library (wmp.dll) and .NET Remoting, using a singleton service.

Aaron Daniels
Hi Aaron do you use ListBox in your project to show the current playlist ?Have a fun.
JayJay