# vue-video-cut

> vue-video-cut

Latest version **2.0.0** (published 2022-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-video-cut
pnpm add vue-video-cut
yarn add vue-video-cut
bun add vue-video-cut
```

## 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 | 2.0.0 |
| Published | 2022-07-25 |
| First published | 2020-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.3 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | jason |
| Maintainers | zzx-cn |

## Links

- npm: https://www.npmjs.com/package/vue-video-cut
- Repository: https://github.com/ZzxStormrage/vue-video-cut
- Homepage: https://github.com/ZzxStormrage/vue-video-cut#readme
- Issues: https://github.com/ZzxStormrage/vue-video-cut/issues
- npm.io page: https://npm.io/package/vue-video-cut

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [video.js](https://npm.io/package/video.js.md) ^7.8.2
- [node-sass](https://npm.io/package/node-sass.md) ^4.14.1
- [sass-loader](https://npm.io/package/sass-loader.md) ^8.0.2

## Recent versions

- 2.0.0 (latest) — 2022-07-25
- 1.2.2 — 2022-07-25
- 1.2.1 — 2020-07-22
- 1.1.1 — 2020-06-30
- 1.1.0 — 2020-06-30
- 1.0.8 — 2020-06-30
- 1.0.7 — 2020-06-30
- 1.0.6 — 2020-06-30
- 1.0.4 — 2020-06-09
- 1.0.3 — 2020-06-09
- 1.0.2 — 2020-06-09
- 1.0.1 — 2020-06-09

## README

<!--
 * @Author: zzx 452436275@qq.com
 * @Date: 2020-06-11 14:20:22
 * @LastEditors: zzx 452436275@qq.com
 * @LastEditTime: 2022-07-25 18:41:39
 * @FilePath: /vue-video-cut/README.md
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
## 前端截取视频 片段插件 基于vue videoJS 支持跳转指定毫秒

## Install
```shell
cnpm install vue-video-cut -S
```

## Quick Start
``` javascript
import Vue from 'vue'
import videoCut from 'vue-video-cut'

Vue.use(videoCut)
```


## 使用
``` bash
<videoCut :video_options="video_options" :video_offset_ms="video_offset_ms"/>

video_options: {
  width: 100,
  height: 200,
  src: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
},
video_offset_ms: {
  start_ms: 20000, #开始时间 毫秒
  end_ms: 50000 #结束时间 毫秒
}
start_time_ms: 1000 #跳转到指定帧 
start_time_ms 和 video_offset_ms 不能同时使用


默认事件列表
const DEFAULT_EVENTS = ['loadstart', 'durationchange', 'loadedmetadata', 'loadeddata', 'progress', 'canplay', 'canplaythrough', 'play', 'waiting', 'playing', 'pause', 'seeking', 'seeked', 'waiting', 'playing','timeupdate']


  
```

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