视频播放器仓库
pu 3c53598460 fix if videoEl.dataset[c] is undefined , JSON.parse will crash 5 anni fa
__mocks__ init 6 anni fa
demo init 6 anni fa
scripts for windows. 6 anni fa
src fix if videoEl.dataset[c] is undefined , JSON.parse will crash 5 anni fa
.babelrc init 6 anni fa
.editorconfig init 6 anni fa
.eslintignore init 6 anni fa
.eslintrc.json init 6 anni fa
.gitignore init 6 anni fa
.nvmrc init 6 anni fa
.travis.yml init 6 anni fa
LICENSE.md init 6 anni fa
README.md update installation details 5 anni fa
browserslist init 6 anni fa
generateConfig.js init 6 anni fa
package-lock.json init 6 anni fa
package.json add npm-cmd: prepare & fix videoTitle toggle bug. 6 anni fa
postcss.config.js init 6 anni fa
webpack.config.js init 6 anni fa

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