5 years ago
This post has been sitting around unfinished since April so I thought I should finish it and get it out there.
Note: This is more of a proof of concept rather than a best practices example so the code is a bit messy and hacked together from various sources.
I have only tested this on Safari for iOS 6 and latest Chrome with a webcam. It may or may no work in other browsers.
All explanations for the the code and markup are in the code comments, so please read them for more detail.