基于 react hooks 的 video 播放组件,代码简洁,扩展简单。
git clone https://github.com/goblin-laboratory/react-player.git
cd react-player
yarn install
yarn start
npm install https://github.com/goblin-laboratory/react-player.git --save
# or
yarn add https://github.com/goblin-laboratory/react-player.git
import React, { Component } from 'react';
import ReactPlayer from 'react-player';
const App = () => {
return <ReactPlayer src="https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8" render="hlsjs" />;
};
Demo page: Demo
待补充
待补充
待补充
暂未实现,文案待补充
待补充
非常欢迎你的贡献,你可以通过以下方式和我们一起共建 😃:
- 通过 Issue 报告 bug 或进行咨询。
- 提交 Pull Request 。
ReactPlayer is MIT licensed.