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

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