0.1.16 • Published 3 years ago

jiker-video-monitor v0.1.16

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

jiker-video-monitor

Installation

npm install jiker-video-monitor --save

Usage examples

引入 vue 组件:

<jiker-video-monitor 
    ref="jiker-video-monitor"
      :videoWidth="videoWidth"
      :videoHeight="videoHeight"
      :isShowImg="isShowImg"
      :imgName="imgName"
      @refreshURL="getImage"
    >
          <template v-slot:button>
        <button @click="handleEvent('getCompetence')">打开摄像头</button>
        <button @click="handleEvent('setImage')">拍照</button>
        <button @click="handleEvent('remakeImage')">重新拍照</button>
        <button @click="handleEvent('stopNavigator')">关闭摄像头</button>
      </template>
    </jiker-video-monitor>
import { JikerVideoMonitor } from "jiker-video-monitor";

export default {
  components: {
    JikerVideoMonitor,
  },
  data() {
    return {
      videoWidth: 300,
      videoHeight:300,
      isShowImg:true,
      imgName:"截图",
    };
  }
    methods: {
    handleEvent(e) {
      this.$refs["jiker-video-monitor"][e]();
    },
    getImage(e) {
      //e: image file
      console.log(e);
    },
  },
};

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago