reactjs-player

0.1.0 • Public • Published

ReactPlayer

ReactPlayer

PRs Welcome GitHub license

基于 react hooks 的 video 播放组件,代码简洁,扩展简单。

Getting started

git clone https://github.com/goblin-laboratory/react-player.git
cd react-player
yarn install
yarn start

Usage

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

Props

待补充

Callback props

待补充

Config prop

待补充

Methods

暂未实现,文案待补充

Supported media

待补充

Contributing

非常欢迎你的贡献,你可以通过以下方式和我们一起共建 😃:

  • 通过 Issue 报告 bug 或进行咨询。
  • 提交 Pull Request 。

Licensing

ReactPlayer is MIT licensed.

Package Sidebar

Install

npm i reactjs-player@0.1.0

Version

0.1.0

License

MIT

Unpacked Size

4.22 MB

Total Files

51

Last publish

Collaborators

  • xiaosongxiaosong