2.0.0 • Published 2 years ago

vue-video-cut v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

前端截取视频 片段插件 基于vue videoJS 支持跳转指定毫秒

Install

cnpm install vue-video-cut -S

Quick Start

import Vue from 'vue'
import videoCut from 'vue-video-cut'

Vue.use(videoCut)

使用

<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']


  
1.2.2

2 years ago

2.0.0

2 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago