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

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