Camera Problem in Max MSP. Please HELP!

radcomrade's icon

In Max, I set up the built in camera on my Mac Book to turn on when sensing motion in front of it, record 2 seconds of video, and then turn off, repeating this process a number of times.

I am doing something wrong, for it works for a few seconds and then freaks out and show no picture/records nothing. Could anyone tell me how to set up a patch where the camera can turn on/off to record video everything couple of seconds?

Thanks you!