No image using video library in netbeans

edited October 2016 in Library Questions

I am trying to use the processing video library in netbeans. I have added the processing core and video jars as libries in netbeans and can get a sketch running with no errors, but I can only hear the video and don't see anything.

When I print "myMovie.width" I get 0...

Here is my code:

package processingvideotest;

import processing.core.PApplet;
import processing.video.*;


public class ProcessingVideoTest extends PApplet{

    Movie myMovie;


    public void setup() {
    myMovie = new Movie(this,  "C:/Users/ollie/Documents/NetBeansProjects/ProcessingVideoTest/src/data/Evangelion.mp4");
    myMovie.play();
    myMovie.speed(1);
    myMovie.loop();

    }

    public void settings() {
      size(400, 400);

    }

    public void draw() {
    image(myMovie, 0, 0);
    }

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

    public static void main(String[] args) {
        PApplet.main(new String[] { "processingvideotest.ProcessingVideoTest" });
    }

}
Sign In or Register to comment.