视频播放器仓库
shaojing f9fd803462 修复代码缺陷 6 years ago
__mocks__ init 6 years ago
demo init 6 years ago
scripts for windows. 6 years ago
src 修复代码缺陷 6 years ago
.babelrc init 6 years ago
.editorconfig init 6 years ago
.eslintignore init 6 years ago
.eslintrc.json init 6 years ago
.gitignore init 6 years ago
.nvmrc init 6 years ago
.travis.yml init 6 years ago
LICENSE.md init 6 years ago
README.md update README.md 6 years ago
browserslist init 6 years ago
generateConfig.js init 6 years ago
package-lock.json init 6 years ago
package.json add npm-cmd: prepare & fix videoTitle toggle bug. 6 years ago
postcss.config.js init 6 years ago
webpack.config.js init 6 years ago

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 https://git.links123.net/links123.com/video_player.git --save

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>
)