mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 11:14:05 +00:00
| Package | Version | Package | Version | | ----------------- | ------- | ----------------- | ------- | | @uppy/companion | 3.5.0 | @uppy/webcam | 2.1.0 | | @uppy/status-bar | 2.1.3 | @uppy/robodog | 2.5.0 | | @uppy/transloadit | 2.1.2 | uppy | 2.9.0 | | @uppy/tus | 2.2.1 | | | - @uppy/transloadit: close assembly if upload is cancelled (Antoine du Hamel / #3591) - @uppy/companion: Companion server upload events (Mikael Finstad / #3544) - @uppy/tus: fix double requests sent when rate limiting (Antoine du Hamel / #3595) - website: fix linter error on blog post (Antoine du Hamel / #3596) - @uppy/companion: fix `yarn test` command (Antoine du Hamel / #3590) - @uppy/webcam: Mime types in webcam options type (Sobakin Sviatoslav / #3593) - website: Some polish and a better (?) intro for the recent update post (AJvanLoon / #3588) - @uppy/companion: Allow setting no ACL (Mikael Finstad / #3577) - @uppy/companion: Small companion code and doc changes (Mikael Finstad / #3586) - @uppy/robodog: fix CDN bundle (Antoine du Hamel / #3587) - website: Fix broken link (YukeshShr / #3581) |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/webcam
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
We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.
Alternatively, you can also use this plugin in a pre-built bundle from Transloadit’s CDN: Edgly. 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.