视频播放器仓库
AdamFu ff9c9f4b2b Merge branch 'master' of Evo/video_player into master преди 5 години
__mocks__ init преди 6 години
demo init преди 6 години
scripts for windows. преди 5 години
src 初始状态不显示错误信息 преди 5 години
.babelrc init преди 6 години
.editorconfig init преди 6 години
.eslintignore init преди 6 години
.eslintrc.json init преди 6 години
.gitignore init преди 6 години
.nvmrc init преди 6 години
.travis.yml init преди 6 години
LICENSE.md init преди 6 години
README.md update installation details преди 5 години
browserslist init преди 6 години
generateConfig.js init преди 6 години
package-lock.json init преди 6 години
package.json add npm-cmd: prepare & fix videoTitle toggle bug. преди 5 години
postcss.config.js init преди 6 години
webpack.config.js init преди 6 години

README.md

Fork from mderrick/react-html5video

extension

  • Add speed/playbackRate control
  • ie9 support. (fullscreen feature only support ie11.)

Install dependencies.

$ npm install

Start server.

$ npm start

Build dist.

$ npm run build

Install package.

$ npm install git+https://git.links123.net/links123.com/video_player.git --save

$ yarn add git+https://git.links123.net/links123.com/video_player.git

Usage

import { DefaultPlayer as Video } from 'react-html5video';
import 'react-html5video/dist/styles.css';

const Player = () => (
  <Video autoPlay>
    <source src="demo.mp4" type="video/mp4" />
  </Video>
)