Hi All, i would be able to stream two video on two different monitor, at the same time. So far this is the code i written to stream one on the secondary monitor, but is not working:
import processing.video.*;
final PApplet projector0 = new ProjectorSketch();
final PApplet projector1 = new ProjectorSketch();
void setup() {
size(300, 300, JAVA2D);
smooth(4);
noLoop();
stroke(-1);
runSketch(new String[] { "--display=1", "--present", "--sketch-path=" + sketchPath(), "Projector" }, projector0);
}
void draw() {
background(0);
}
class ProjectorSketch extends PApplet {
Movie movie;
void setup() {
stroke(#FFFF00);
movie = new Movie(this, "transit.mov");
movie.loop();
}
public void settings() {
size(displayWidth, displayHeight, JAVA2D);
}
void draw() {
image(movie, 0, 0, width, height);
}
}
public void movieEvent(Movie m) {
m.read();
}