Hi all I want to run a program called VLC in java and control it while running, for example if user clicked on pause or fast forward button, I do a specific suitable action. I run VLC by this code :
try{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(VLCProgramAddFile + " udp://@:" + listeningPort);
OutputStream out = p.getOutputStream();
InputStream in = p.getInputStream();
p.waitFor();
System.out.println("End of VLC");
}catch (Exception e){
System.out.println("error in running VLC");
}
I have heard about java binding, but I don't know how does it work for this job. please guide me.
thank you, sajad