- Initialize cam
- attach to an element in the DOM
- Take the first snap when load event fires
2: Do stuff with the result https://github.com/kabk/go-theses-17-manus-nijhoff/blob/8b09576a614fcb4bb7e11f15efdb92ebe905f278/src/js/cam.js
takeSnapshot function does:
- take a snap
- result (data_uri) gets added to an array of images
This is some basic stuff you can do with this. I'm not sure whether it serves your purpose