my-camera
v1.0.14
Published
A simple web Component which shows your device camera, and allows you to record a video!
Downloads
7
Maintainers
Readme
My Camera
Simple component based on JS custom elements, which allow you to get access to your current device camera.
There's also ability to record stream and download.
Not compatilbe with some browsers, do not use it in production
Installation
npm install my-camera
And include somewhere in your app:
@import 'my-camera'
Or include stright in your index.html
<script rel="import" src="node_modules/dist/my-camera.js"></script>
Usage
<my-camera controls autoplay audio record></my-camera>
The controls and autoplay works like in video HTMLElement. Include audio attribute if you want to record audio as well.
And finally, record attribute will inlcude a simple button on top of Video, on click it starts recording, on stop recorded video will be downloaded!
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
First release
License
Shared on MIT license, check LICENSE.