# Media: Webcam & Camera Access
Simple APIs for accessing the camera and microphone via `getUserMedia`.
## Overview
Two modules provide camera/microphone access: `devices/getUserMedia` (polyfill) and `devices/webcam` (high-level API).
## Advantages
- **Simple callback API** -- no need to remember the `navigator.mediaDevices` API
- **Polyfill included** -- works across browsers with different `getUserMedia` implementations
- **Video element helper** -- `loadVideo()` handles stream-to-video attachment
- **Configurable timeout** -- set max wait time for camera access
- **Audio + Video** -- configure which streams you need
## Quick Start: Show Webcam Feed
```html
```
## API Reference
### `webcam.getStream(callback, [constraints])`
Request camera/microphone access.
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `callback` | Function | | `function(err, stream)` |
| `constraints` | Object | `{ audio: true, video: true }` | Media constraints |
### `webcam.loadVideo(stream, videoElement, [callback])`
Attach a stream to a `