HTML Media Capture API

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

https://nectar.website/demo/web-apis/html-media-capture/

Usage

You can refer to the code present in /partials/web-apis/html-media-capture.html file and use it accordingly.

Reference

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture

Last updated