HI, I'm new to Processing and I'm trying to store a single PImage from a Movie but I can't do it
I've been looking but I can't find anyone with the same problem
- import processing.video.*;
- PImage img;
- Movie theMov;
- void setup() {
- frameRate(30);
- size(600, 400,P2D);
- theMov = new Movie(this, "Marvels The Avengers- Trailer (OFFICIAL).mp4");
- theMov.play();
- }
- void draw() {
- image(img,30,30);
- }
- void movieEvent( Movie m )
- {
- theMov.read();
- img = m;
- }
I don't know why NullPointerException is raised in line 12
Please help :S
1