A component that allow to record a video o take pictures in your website with the HTML5 API.
https://mrjeffapp.github.io/vuejs-camera/
yarn add @mrjeffapp/vuejs-camera
npm install --save @mrjeffapp/vuejs-camera
// Global - In your main.js
import '@mrjeffapp/vuejs-camera'
// Local - In your Component.vue
import VueCamera from '@mrjeffapp/vuejs-camera'
export default {
components: {
VueCamera
}
}
// Add in your index.html
<script src="https://use.fontawesome.com/e9b7441153.js"></script>
// Enjoy it!
<VueCamera/>
- Type:
String
- Default:
video
- Options:
video
|photo
Allow you to capture video or photo.
When the upload button has been pressed. The Blob (Video or Photo) is sended in the payload.
The photo has been taken.
It starts to record the video.
The record has been stoped.
The video or photo is reseted.
The source camera has been changed.
The video has been played.
The video has been paused.