> For the complete documentation index, see [llms.txt](https://pmsgz.gitbook.io/nectar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pmsgz.gitbook.io/nectar/advanced/web-apis/html-media-capture.md).

# 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>
