A custom element that implements the MediaDevices.getUserMedia() method to capture a photo in the browser.
Source code & documentation
<capture-photo auto-play></capture-photo>
The MIT License (MIT)