1. 安装依赖(附官方地址https://video-react.js.org/)
npm install --save video-react
2. 引入样式文件
使用css引入
import "node_modules/video-react/dist/video-react.css";
使用scss引入
@import "~video-react/styles/scss/video-react";
3. 示例
经过看文档之后将该主要功能将其进行总结(该插件其主要能实现以下功能包括为样式以及功能赋上本人github地址https://github.com/yzh13014621624/video.git)
如有需要可直接
clone
源代码进行解读和使用
源码使用:
git clone https://github.com/yzh13014621624/video.git
npm i
-
npm run start
后续如有发现更好的插件会继续更新播放音频这个功能