node-v4l2camera icon indicating copy to clipboard operation
node-v4l2camera copied to clipboard

Error on cam.stop();

Open N2481 opened this issue 8 years ago • 3 comments

I tried the capture-jpg.js example, the capture works well, but i have to comment the line cam.stop(), if not an error is thrown in my node.js app: TypeError: undefined is not a function. Thanks for any help.

N2481 avatar Oct 15 '16 19:10 N2481

I have the same issue

Chist777Porto avatar Nov 23 '16 06:11 Chist777Porto

stop() expects a callback. Giving it a callback fixes.

huseyinkozan avatar Jan 28 '17 17:01 huseyinkozan

The callback should be optional.

vicary avatar May 01 '17 15:05 vicary