This repository contains the source code used in the Viewing Webcam Feeds and Grabbing Still Frames in a Modern Way tutorial from TangibleJS.
If you wish, you can also try out the live version which allow you to select a webcam, view its feed and grab still frames.