We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › problem of loop and read mov. file on Processing!
Page Index Toggle Pages: 1
problem of loop and read mov. file on Processing! (Read 587 times)
problem of loop and read mov. file on Processing!
Dec 4th, 2009, 11:36pm
 
Please, help me:-(
I've tried to play mov file, but I can't.
-



import processing.video.*;

Movie myMovie;

void setup() {
 size(640, 480, P2D);
 background(0);
 // Load and play the video in a loop
 myMovie = new Movie(this, "dcq.mov");
 myMovie.loop();
}

void movieEvent(Movie myMovie) {
 myMovie.read();
}

void draw() {
 tint(255, 20);
 image(myMovie, mouseX-myMovie.width/2, mouseY-myMovie.height/2);
}


-these are what I tried.
but the error message is still coming up.
the message is "NullPointerException."

plz, help me.
I do not know what is wrong.
Re: problem of loop and read mov. file on Processing!
Reply #1 - Dec 7th, 2009, 1:33pm
 
Hi,

You've got to change the P2D in to P3D and it works, for me at least
Page Index Toggle Pages: 1