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

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