We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Initialize FasterMovie from an Object
Page Index Toggle Pages: 1
Initialize FasterMovie from an Object (Read 801 times)
Initialize FasterMovie from an Object
May 26th, 2009, 6:34am
 
Hello!

I'm trying to place different movie files in different objects, using the fastermovie library. Unfortunately, i still get the error error in FasterMovie() creating callback. I know theres something wrong with the void movieImageAvailable metod, but i dont know how to get it right. Heres my code:

Code:

class myField {

 FasterMovie fm;
 PImage mImage;

 myField (int a, int b, int c, int d, String e) {  
   x = a;
   y = b;
   w = c;
   h = d;
   fm = new FasterMovie(myFirstTracking4.this, "data.mov", false);
   fm.loop();

 }

 void play() {

   image( fm, 0,0, width, height );
   if ( mImage != null ) image( mImage, 0,0, 320, 240);
 }

 void movieImageAvailable ( PImage _movieImage )
 {
   mImage = _movieImage;
 }
}


And, for sure, the FasterMovie class from: http://danieloberhoff.de/processing/FasterMovie.pde

Any suggestions
Re: Initialize FasterMovie from an Object
Reply #1 - May 26th, 2009, 8:45am
 
The FasterMovie searches the movieImageAvailable method in the PApplet class, you have put it in your myField class.
Page Index Toggle Pages: 1