0.1.16 • Published 2 years ago

jiker-video-monitor v0.1.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago