PlayMovie example

Processing sketch

PlayMovie.pde
/**
 * PlayMovie 
 * 
 * Example for the pogg library by Octavi Estape.
 * It plays a Theora movie.
 */ 
 
import pogg.*;
 
TheoraMovie myMovie;
 
void setup() {
  frameRate(10);
 
  myMovie = new TheoraMovie(this, "BugsShort.ogg");
  myMovie.loop();
 
  size(myMovie.width, myMovie.height);
}
 
void draw() {
  myMovie.read();
  image(myMovie, 0, 0);
}

Result

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Comments

Enter your comment
MXCOH
 
 
Back to top
playmovie_example.txt · Last modified: 2021/08/05 14:38 (external edit)
 
 
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0