Overview
HTML Media Capture API allows access to the device's media capture mechanism, such as a camera, or microphone, from within a file upload control.
Demo
Usage
You can refer to the code present in /partials/web-apis/html-media-capture.html
file and use it accordingly.
Reference