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
Stop Capture, Restart Capture (Read 825 times)
Stop Capture, Restart Capture
Jul 16th, 2007, 3:36pm
 
Hi there,

For performance reasons I would like to stop Capturing, but restart again during runtime.
I had a look at Capture.stop() , .dispose(), but couldn't find anything like start().
After dispose()ing the Capture-object at runtime, it's not possible to re-create a Capture object, as the device is still in use as long as the sketch runs.
Any ideas?

I'm on a MPB, running 124.

Regards,
Patrick
Re: Stop Capture, Restart Capture
Reply #1 - Aug 6th, 2007, 8:48pm
 
yes, you can by accessing the quicktime object directly.

use
my_capture.channel.stop();

and
my_capture.channel.previewChannel();


hope that works...
hansi.
Re: Stop Capture, Restart Capture
Reply #2 - Aug 17th, 2007, 10:47am
 
hi hansi,

thx for your answer.

Unfortunately these methods you mentioned do not exist? or at least I can't find them.

Quote:


video = new Capture(this, 320, 240, 24);
(...)
video.channel.stop();
(...)
video.channel.previewChannel();



Am I accessing the wrong Channel object?
Page Index Toggle Pages: 1