视频播放器仓库
narro e607fdff43 初始状态不显示错误信息 il y a 5 ans
__mocks__ init il y a 6 ans
demo init il y a 6 ans
scripts for windows. il y a 5 ans
src 初始状态不显示错误信息 il y a 5 ans
.babelrc init il y a 6 ans
.editorconfig init il y a 6 ans
.eslintignore init il y a 6 ans
.eslintrc.json init il y a 6 ans
.gitignore init il y a 6 ans
.nvmrc init il y a 6 ans
.travis.yml init il y a 6 ans
LICENSE.md init il y a 6 ans
README.md update README.md il y a 5 ans
browserslist init il y a 6 ans
generateConfig.js init il y a 6 ans
package-lock.json init il y a 6 ans
package.json add npm-cmd: prepare & fix videoTitle toggle bug. il y a 5 ans
postcss.config.js init il y a 6 ans
webpack.config.js init il y a 6 ans

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