视频播放器仓库
narro e607fdff43 初始状态不显示错误信息 пре 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 README.md пре 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 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>
)