0.1.6 • Published 6 years ago

@mrjeffapp/vuejs-camera v0.1.6

Weekly downloads
7
License
-
Repository
-
Last release
6 years ago

vuejs-camera

A component that allow to record a video o take pictures in your website with the HTML5 API.

demo gif

DEMO

https://mrjeffapp.github.io/vuejs-camera/

Installation

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
  }
}
<VueCamera />

Props

capture

  • Type: String
  • Default: video
  • Options: video | photo

Allow you to capture video or photo.

Events

onReady

When the upload button has been pressed. The Blob (Video or Photo) is sended in the payload.

onPhoto

The photo has been taken.

onStart

It starts to record the video.

onStop

The record has been stoped.

onReset

The video or photo is reseted.

onCameraChanged

The source camera has been changed.

onPlay

The video has been played.

onPause

The video has been paused.

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago