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 & HelpIntegration › Eclipse and video library
Page Index Toggle Pages: 1
Eclipse and video library (Read 1085 times)
Eclipse and video library
Feb 2nd, 2007, 8:56am
 
Hey all,

I am having a problem with Processing's video library in Eclipse. It seems that captureEvent(Capture c) never gets called, and thus no frames ever get captured unless I explicitly call cam.read() from the main loop.

I've tried running the program as an applet, adding a main function and running it as an application, and embedding the applet in a JFrame (with the proper call to init() ), to no avail. The program runs without any compilation errors, but captureEvent never gets called (I put a println("test") in there, and it never prints out anything). It just seems like the thread of the video library never starts, or at least that the event never gets fired.

I know that there are workarounds, but I am wondering if anyone else is having the same issue. BTW, I am using an intel mac, with OS X 10.4.8

thanks

c.
Re: Eclipse and video library
Reply #1 - Feb 2nd, 2007, 10:40am
 
did you do:

public void captureEvent( Capture c ) { .. }

?
F
Re: Eclipse and video library
Reply #2 - Feb 2nd, 2007, 8:34pm
 
ah, "public" fixed it. doh.

thanks.

c.
Page Index Toggle Pages: 1