Postby jbste » 27 Sep 2007 02:02
This is how far i am at the moment, here's my code, it compiles and runs under windows xp and with jdk1.3. I added a couple of methods in JVLCPanel recompiled and re-generated header files. Then I decided to change the JVLCPanel default constructor and placed super.setSize(int x, int y) and super.setLocation(int x, int y) method calls there. I'm getting video output but the setSize and setLocation() calls are doing nothing. Can anyone help, I want to render the video image on a panel on a secondary monitor with x , y coordinates of 800,0 and setSize(800,600)
Thanks
import org.videolan.jvlc.JVLCPanel;
import org.videolan.jvlc.JVLC;
import org.videolan.jvlc.*;
public class JvlcTest {
public JvlcTest() {
}
public static void main(String[] args) throws Exception {
JVLCPanel jvlcpan= new JVLCPanel();
//jvlcpan.setSize(800,600);
//jvlcpan.setLocation(800,0);
//JVLC jvlc= new JVLC(); not needed because JVLCPanel calls JVLCCanvas which inturn creates an instance of JVLC which is returned by getJVLCObject (or that is my understanding)
JVLC jvlc =jvlcpan.getJVLCObject();
jvlc.playlist.add("a.mpg", "a.mpg");
jvlc.playlist.play();
}
}