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
2009-03-30 15:18:40
Hi Stuart,i store the songs from a folder and this folder will be update each week.Thanks for you reply
JayJay
2009-03-30 15:51:35
+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
2009-03-30 15:33:36
A:
We've controlled Windows Media Player through the Windows Media library (wmp.dll) and .NET Remoting, using a singleton service.
Aaron Daniels
2009-03-30 15:34:26
Hi Aaron do you use ListBox in your project to show the current playlist ?Have a fun.
JayJay
2009-03-30 16:10:49
A: