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.
Page Index Toggle Pages: 1
NEED HELP TO PLAY MOVIE!! (Read 1603 times)
NEED HELP TO PLAY MOVIE!!
Dec 14th, 2009, 9:40am
 
Hey all,

I'm trying to play a quicktime movie in processing and depending on where you mouseclick, playing the next movie after that.  I've run the regular movie code using my video and all I get is a blank grey screen. Heres what i had for the code, not really sure where to go from here:  Thanks!

import processing.video.*;
Movie myMovie;

void setup() {
 size(400, 400);
 myMovie = new Movie(this, "weartheseshoesbg.mov");
 myMovie.loop();
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
 m.read();
}
Re: NEED HELP TO PLAY MOVIE!!
Reply #1 - Dec 14th, 2009, 10:27am
 
you miss the whole draw part where the movie is actually shown.
just take a look at the example code here:
http://processing.org/reference/libraries/video/Movie.html

Re: NEED HELP TO PLAY MOVIE!!
Reply #2 - Dec 14th, 2009, 8:30pm
 
ah ok, but what does the 'tint' and mousex, mouse y correspond to?
Re: NEED HELP TO PLAY MOVIE!!
Reply #3 - Dec 15th, 2009, 12:52am
 
its just an example that let you draw with your video image. tint made it semitransparent, and mouseX,mouseY set the image to your mouse coordinates.

try


import processing.video.*;
Movie myMovie;

void setup() {
 size(200, 200);
 myMovie = new Movie(this, "totoro.mov");
 myMovie.loop();
}

void draw() {

 image(myMovie, 0,0);
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
 m.read();
}
Re: NEED HELP TO PLAY MOVIE!!
Reply #4 - Apr 23rd, 2010, 7:37am
 
Hi,

How do you play the next movie upon a trigger e.g keyPressed etc?

Thanks
Page Index Toggle Pages: 1