|
|
|
|
|
by franze
5028 days ago
|
|
hi, this is as good a moment as any to promote a little bit a lib i coded some time ago. a simple (cross browser) wrapper to make getUserMedia really simple, you call Sinne.getUserVideo(success, error[, options])
//https://github.com/franzenzenhofer/Sinne
and get back a nice HTML5 video element with the webcam as the inputhere is a simple demo using the `Sinne` http://www.backpacker.io/ - an HTML5 mirror |
|
I was thinking of libifying my thingy, in a quite minimalistic way (at a minumum, the user would just pass two functions, one "update" and one "draw", which would receive a the current frame and, in the first case, the delta time).
This way you could just get freaky with the canvas effects and composing capabilities and stop caring about the low-level stuff.
I see you know your way around building nice, clean APIs; could you suggest me article/book about it? I'm kind of a newbie to that sort of things.