Processing 2.0b3 video in Eclipse
in
Core Library Questions
•
1 year ago
I'm trying to run Examples > Libraries > video > Movie > Speed in Eclipse. No errors in the console, mov.time() prints out just fine. The problem is that
the video is never rendered.
I'm on Windows 7 64-bit. I thought 64 vs 32-bit could be causing problems, so I got everything 32-bit: Eclipse Juno, JDK 1.7, JRE7 and Processing 2.0b3.
Eclipse Package Explorer referencing processing.core and processing.video
I'm on Windows 7 64-bit. I thought 64 vs 32-bit could be causing problems, so I got everything 32-bit: Eclipse Juno, JDK 1.7, JRE7 and Processing 2.0b3.
- import processing.core.*;
- import processing.video.*;
- public class MySketch extends PApplet {
- public Movie mov;
- public void setup() {
- size(900, 600);
- background(0);
- mov = new Movie(this, "../transit.mov");
- mov.loop();
- }
- public void draw() {
- // draw with mouse just to check if draw() is running
- stroke(255);
- if (mousePressed) line(mouseX, mouseY, pmouseX, pmouseY);
- // draw movie
- image(mov, 0, 0);
- System.out.println(mov.time());
- // float newSpeed = map((float) mouseX, (float) 0, (float) width, (float) 0.1, (float) 2);
- // mov.speed(newSpeed);
- // fill(255);
- // text(nfc(newSpeed, 2) + "X", 10, 30);
- }
- void movieEvent(Movie m) {
- m.read();
- }
- }
Output - no video:
Video examples work fine when I run then from Processing IDE.
Any ideas why it doesn't work from Eclipse?
Thanks.
Any ideas why it doesn't work from Eclipse?
Thanks.
1