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
後續如有發現更好的插件會繼續更新播放音頻這個功能