uppy/packages/@uppy/webcam
github-actions[bot] 55e926c347
[ci] release (#6027)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @uppy/status-bar@5.0.2

### Patch Changes

-   8ac1654: Change internal type from `any` to `unknown`.

## @uppy/webcam@5.0.2

### Patch Changes

-   8ac1654: - Remove TagFile type - Use UppyFile instead.
- Split UppyFile into two interfaces distinguished by the `isRemote`
boolean:
        -   LocalUppyFile
        -   RemoteUppyFile

## @uppy/xhr-upload@5.0.2

### Patch Changes

- 8ac1654: - Make `file.data` nullable - Because for ghosts it will be
`undefined` and we don't have any type to distinguish ghosts from other
(local) files. This caused a crash, because we didn't check for
`undefined` everywhere (when trying to store a blob that was
`undefined`). This means we have to add null checks in some packages
- Split UppyFile into two interfaces distinguished by the `isRemote`
boolean:
        -   LocalUppyFile
        -   RemoteUppyFile

## uppy@5.1.8

### Patch Changes

-   Updated dependencies [8ac1654]
-   Updated dependencies [8ac1654]
-   Updated dependencies [8ac1654]
    -   @uppy/status-bar@5.0.2
    -   @uppy/webcam@5.0.2
    -   @uppy/xhr-upload@5.0.2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-22 21:21:09 +02:00
..
src Golden retriever refactor and UppyFile type improvements (#5978) 2025-10-17 23:17:40 +08:00
CHANGELOG.md [ci] release (#6027) 2025-10-22 21:21:09 +02:00
LICENSE Move Webcam to @uppy/webcam. 2018-06-14 16:31:19 +02:00
package.json [ci] release (#6027) 2025-10-22 21:21:09 +02:00
README.md Fix links (#5492) 2024-10-29 13:54:00 +01:00
tsconfig.build.json From Babel to TS (#5792) 2025-06-30 16:12:26 +02:00
tsconfig.json Migrate from Eslint/Prettier/Stylelint to Biome (#5794) 2025-07-01 14:55:41 +02:00
turbo.json Fix turbo race condition (#5839) 2025-07-23 10:49:11 +02:00

@uppy/webcam

Uppy logo: a smiling puppy above a pink upwards arrow

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

The Webcam plugin for Uppy lets you take photos and record videos with a built-in camera on desktop and mobile devices.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

import Uppy from '@uppy/core'
import Webcam from '@uppy/webcam'

const uppy = new Uppy()
uppy.use(Webcam, {
  mirror: true,
  facingMode: 'user',
  showRecordingLength: true,
})

Installation

$ npm install @uppy/webcam

Alternatively, you can also use this plugin in a pre-built bundle from Transloadits CDN: Smart CDN. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.