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
Video Not Working on 1.01 (Read 439 times)
Video Not Working on 1.01
Dec 15th, 2008, 11:47pm
 
I loaded the code on 1.01 for videos and it doesn't work, but the same code works on the older version 0135.  Is there a way to fix this problem?

import processing.video.*;
Movie blah;

void setup()
{
 size(600, 600);
 blah = new Movie(this, "JAWDwindance.mov");
 blah.loop();
}

void draw()
{ if(blah.available()){
 image(blah, 0, 0);
}
}

void movieEvent(Movie m){
 if(m.available()){
    m.read();    
 }
}
Re: Video Not Working on 1.01
Reply #1 - Dec 16th, 2008, 8:26am
 
what system are you on?
Re: Video Not Working on 1.01
Reply #2 - Dec 17th, 2008, 3:48am
 
Same problem here.

OS X 10.5.5
P5 1.0.1

To solve this issue I add P3D in size() otherwise i get:

Quote:
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!

at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.
java:416)

at processing.core.PGraphicsJava2D$ImageCache.update(PGraphicsJava2D.java:929)

at processing.core.PGraphicsJava2D.imageImpl(PGraphicsJava2D.java:807)

at processing.core.PGraphics.image(PGraphics.java:2150)

at processing.core.PApplet.image(PApplet.java:7100)

at video_p5_101.draw(video_p5_101.java:34)

at processing.core.PApplet.handleDraw(PApplet.java:1406)

at processing.core.PApplet.run(PApplet.java:1311)

at java.lang.Thread.run(Thread.java:613)
Page Index Toggle Pages: 1