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.
Page Index Toggle Pages: 1
closing video capture (Read 713 times)
closing video capture
Dec 16th, 2006, 12:42am
 
Hi.

I've just made this simple little video capture example that shows how video capture works in a browser:

http://www.abstractmachine.net/thesis/diagrams.php?name=camera

Unfortunately, I can't seem to get the library to close correctly when I click to another page. I.e. I can't use the animation again unless I quit my browser and restart it.

I'm using the following code to close the capture, based on similar success with ESS, Sonia and other libraries:

Code:
public void stop() {
video.stop();
super.stop();
}


It *appears* to be doing *something* because my camera (MacBook/iSight) stops smiling its little green light at me when I click on another page.
Page Index Toggle Pages: 1