1.0.1 • Published 2 years ago

cut-video-for-vue3 v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

基于vue3的一个视频截断播放器,兼容mp4/m3u8视频格式

一:开发步骤

1: 创建普通vue项目

  vue create xxx

2:创建plugins文件夹,plugins下创建lib文件夹,在lib文件夹下写你的插件代码

  vite-project
  ├── src
  │   ├── plugins
  │   │   ├── index.js
  │   │   └── videoPlayer.vue

3:自己引用,本地测试下 4:发布npm

  npm-push-floder
  ├── README.md
  ├── package.json
  │── plugins
  │── └── videoPlayer.vue
  ├── index.js

使用步骤

yarn add cut-video-for-vue3

main.js中
import Vue from 'vue'
import CutVideoForVue3 from 'vue-amazing-selector'
Vue.use(CutVideoForVue3)