# video-capture-plugin

> this is video capture plugin

Latest version **1.0.0** (published 2020-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install video-capture-plugin
pnpm add video-capture-plugin
yarn add video-capture-plugin
bun add video-capture-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-03-25 |
| First published | 2020-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | woke |
| Maintainers | woke20 |
| Keywords | video, video capture, video upload, javascript, react, vue |

## Links

- npm: https://www.npmjs.com/package/video-capture-plugin
- Repository: https://github.com/wokeT/video-capture-plugin
- Homepage: https://github.com/wokeT/video-capture-plugin#readme
- Issues: https://github.com/wokeT/video-capture-plugin/issues
- npm.io page: https://npm.io/package/video-capture-plugin

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-03-25

## README

## video-capture-plugin plugin
this is a video plugin for upload and ccapture 

## How to use?

```sh
npm install video-capture-plugin --save

```

```sh
import downloadImg from 'video-capture-plugin'

const videoCapture = new VideoCapture(dom,options)

配置：
const options = {
  accept: 'video/mp4', // 支持的视频格式
  duration: 50,         // 视频时长
  size: 1024*15*1024,         // 视频文件的大小
  change: change,  // 文件上传时候的回调
}

videoCapture.init()

const src = videoCapture.capture(file,time)

配置：
file: 视频文件，可以通过change回调获取
time: 需要截取的时刻

```

---
_Source: https://npm.io/package/video-capture-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
