Name

available()

Class

Movie

Description

Returns "true" when a new movie frame is available to read.

Examples

  • import processing.video.*;
    Movie myMovie;
    
    void setup() {
      size(200, 200);
      frameRate(30);
      myMovie = new Movie(this, "totoro.mov");
      myMovie.loop();
    }
    
    void draw() {
      if (myMovie.available()) {
        myMovie.read();
      }
      image(myMovie, 0, 0);
    }
    
    

Syntax

  • .available()

Return

  • boolean