views:

42

answers:

1

hi

Is there any way through which i can get the name of the song being played in my window media player using java programming.

+1  A: 

You'll need to use native code. The hard (but free) way is to write Java Native Interface code yourself. The easier way is to use a product which does the hard work for you, for example EZ-JCOM. I've used it before and it has been ok.

To then find out how to get the currently playing song, see this question.

Nick Fortescue