I am trying to run simple processing program in eclipse to play video. this is the code:
import processing.core.*; import processing.video.*;
public class BackgroundSubtraction extends PApplet {
Movie video;
public void setup(){
size(720,480);
video = new Movie(this,"/home/gurinderbeer/Desktop/new/Gurbinder/data/mv2_002.avi");
video.loop();
video.play();
}
public void draw() {
image(video, 0, 0);
}
public void movieEvent(Movie m) {
m.read();
}
}
when I run the program, it gives no error. Applet pops-up but video is not playing in applet. I can hear the audio when i run the program, but no visuals on applet. Can anyone please help...! Thanks