how to control Windows Media Player and other players from a Java program?
Hello,
I was wondering if it is possible to control a standard media player through a programming language?
For example from a Java program, call Windows Sound Recorder (to record) and then Win Media Player (or Real Audio or Quicktime) to playback sections of audio?
To reiterate, I want to be able to access the default media player and sound recorder that is already installed on the user's desktop.
1) which programming language? My application is in Java; if the program to control the media player is in some other language, I shall have to investigate how to call that DLL from Java. I know Unix/C, Unix/C++.
2) I would appreciate not having to learn lots of .Net, VB or Visual Studio to do this ie. simple solution preferred!
I would greatly appreciate any help.
thanks,
Anil
[838 byte] By [
anilp1a] at [2007-10-2 0:14:58]

Vitally... Thank you, Spasibo, Toda Raba!
I have been looking for this answer but did not find it.
-
Anil Philip
1) I created a project for it in Eclipse and tried to run it. I passed the -D argument but got this exception
Exception in thread "main" java.lang.NoClassDefFoundError
at com.develop.jawin.IdentityManager.registerProxy(IdentityManager.java:259)
at com.develop.jawin.UnknownPtr.<clinit>(UnknownPtr.java:48)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.develop.jawin.AXComponent.class$(AXComponent.java:54)
at com.develop.jawin.AXComponent.<init>(AXComponent.java:54)
at MediaPlayerComponent.<init>(MediaPlayerComponent.java:21)
at OldMediaPlayer.initComponents(OldMediaPlayer.java:33)
at OldMediaPlayer.<init>(OldMediaPlayer.java:19)
at OldMediaPlayer.main(OldMediaPlayer.java:124)