0

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?

Pesto
  • 23,810
  • 2
  • 71
  • 76
JayJay
  • 1,038
  • 3
  • 25
  • 50
  • Binary, we collided. I rolled back since I essentially scrubbed his question and started over. – George Stocker Mar 30 '09 at 15:14
  • Sorry Gortok ,,from 2 days im not sleeping ,maybe for you it is simple but i don0t know how work out this trouble as it is last one feature to complete my project. I don't wish give you bother . Have a happy day. ;) – JayJay Mar 30 '09 at 15:19
  • @JayJay: The problem isn't your question, it was that it's not written in legible english. We just edited it to make sense of the question. – George Stocker Mar 30 '09 at 15:28
  • Thanks Gortok... – JayJay Mar 30 '09 at 15:49
  • JayJay: Do you want this community to write your entire application? *points at previous questions* – Marcus L Mar 30 '09 at 15:55
  • @Honsa. Ii don't know who are you but sure you are not the creator of this community as you are not the creator of the role of this community,if i wish post 5 questions in one day i can .Only a person like you have bad thoughts about people no one asked your help.Don't offend people. Have a HappyDay – JayJay Mar 31 '09 at 14:28
  • Ok, I don't want to start a flaming here, but your questions are usually answered by two minutes spent on Google. But you're right, it's not my place to tell you what you can and cannot ask here. I am entitled to an opinion, though. – Marcus L Apr 01 '09 at 12:53

4 Answers4

1

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
  • 45,296
  • 24
  • 122
  • 150
0

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

stuartd
  • 70,509
  • 14
  • 132
  • 163
  • Hi Stuart, i store the songs from a folder and this folder will be update each week. Thanks for you reply – JayJay Mar 30 '09 at 15:51
0

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

Aaron Daniels
  • 9,563
  • 6
  • 45
  • 58
0

Look here: How to interact with Windows Media Player in C#

Community
  • 1
  • 1