pu 3c53598460 fix if videoEl.dataset[c] is undefined , JSON.parse will crash | 5 years ago | |
---|---|---|
__mocks__ | 6 years ago | |
demo | 6 years ago | |
scripts | 6 years ago | |
src | 5 years ago | |
.babelrc | 6 years ago | |
.editorconfig | 6 years ago | |
.eslintignore | 6 years ago | |
.eslintrc.json | 6 years ago | |
.gitignore | 6 years ago | |
.nvmrc | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE.md | 6 years ago | |
README.md | 5 years ago | |
browserslist | 6 years ago | |
generateConfig.js | 6 years ago | |
package-lock.json | 6 years ago | |
package.json | 6 years ago | |
postcss.config.js | 6 years ago | |
webpack.config.js | 6 years ago |
Fork from mderrick/react-html5video
Install dependencies.
$ npm install
Start server.
$ npm start
Build dist.
$ npm run build
$ 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
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>
)