@muum/react-video-player
@muum/react-video-player
是一个基于 video.js
封装的在 react
项目中使用的支持播放 m3u8
格式的视频播放器.
使用方法
-
安装
npm install @muum/react-video-player --save
-
使用
import VideoPlayer from '@muum/react-video-player'; <VideoPlayer {...{vid, url}} />
注意事项
vid
不能是纯数字