README
目录解构
├── README.md
├── examples //例子
├── images.d.ts
├── package.json
├── dist 打包后代码
│ ├── index.scss
│ └── index.js
├── scr // 根目录
│ ├── index.scss
│ └── index.js
│
└── yarn.lock
参数
1.url //视频地址 2.isClip //是否按剪辑的播放 true/false 3.fragmentArr // 剪辑参数[{id:"",start:"",end:"",color:""}] 4.headerCover //片头参数{imgUrl:"",fragTime:""} 5.footerCover // 片尾参数{imgUrl:"",fragTime:""} 6.width //播放器宽 7.height //播放器高
使用
import VideoPlayer from "video-clip" import "video-clip/dist/main.css"