Tastenkunst/brfv4_javascript_examples

Turn off camera + disable library

Closed this issue · 2 comments

I know I can init the camera/library by doing brfv4Example.init("webcam"); which then turns on the green light for the camera on my macbook pro.

Is there a way I can de-init the library/camera without doing a hard page reload?

Well I guess you will need to add a function like this in BRFv4SetupExample.js

example.dispose = function() { drawing.setUpdateCallback(null); imageData.dispose(); }

That worked! Thanks for the quick reply!