I made this test application in processing. It would play the .mov file in the processing application but when I tried to make it into an eclipse file I keep getting errors. Can someone help me out :)
package vidt;
import processing.core.PApplet;
import processing.opengl.*;
import codeanticode.glgraphics.*;
import codeanticode.gsvideo.*;
public class VIDT extends PApplet {
public GSMovie movie;
public GLTexture tex;
public void setup() {
size(640, 480, GLConstants.GLGRAPHICS);
background(0);
movie = new GSMovie(this, "Box_Demo_Blue.mov");
// Use texture tex as the destination for the movie pixels.
tex = new GLTexture(this);
movie.setPixelDest(tex);
movie.loop();
}
public void movieEvent(GSMovie movie) {
movie.read();
}
public void draw() {
if (tex.putPixelsIntoTexture()) {
tint(255, 20);
image(tex, mouseX-movie.width/2, mouseY-movie.height/2);
}
}
public static void main(String _args[]) {
PApplet.main(new String[] { vidt.VIDT.class.getName() });
}
}