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
Looping Multiple Movies (Read 428 times)
Looping Multiple Movies
Aug 20th, 2008, 11:55pm
 
Every time I try to loop more than one movie at a time, they both end up 'stopping' at their respective ends. Here is some sample code to test. Both movies are 640x480:

Code:

import processing.video.*;

Movie m1;
Movie m2;

void setup() {
size(640*2, 480);
m1 = new Movie(this, "background.mov");
m2 = new Movie(this, "background2.mov");
m1.loop();
m2.loop();
}

void draw() {
if (m1.available()) m1.read(); image(m1, 0, 0);
if (m2.available()) m2.read(); image(m2, 640, 0);
}



Also, I get this error often:
Code:

Invalid memory access of location ffffffff eip=958b8b41

I haven't looked at the source yet figuring someone may just be able to tell me what is up.
Page Index Toggle Pages: 1