├── .babelrc ├── index.js ├── example ├── app.css ├── app.js └── index.html ├── webpack.config.js ├── README.md ├── .gitignore ├── LICENSE ├── src └── index.js ├── dist └── index.js └── package.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "react"] 3 | } 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/index'); 2 | -------------------------------------------------------------------------------- /example/app.css: -------------------------------------------------------------------------------- 1 | *, *:before, *:after { 2 | box-sizing: border-box; 3 | } 4 | 5 | .app { 6 | max-width: 400px; 7 | margin: 0 auto; 8 | } -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: './example/app.js', 3 | output: { 4 | path: __dirname + '/example', 5 | filename: 'bundle.js', 6 | publicPath: "/example/", 7 | }, 8 | module: { 9 | loaders: [ 10 | {test: /\.js$/, loader: 'babel-loader'}, 11 | {test: /\.json$/, loader: 'json-loader'} 12 | ] 13 | }, 14 | externals: { 15 | 'react': 'React', 16 | 'react-dom': 'ReactDOM' 17 | }, 18 | devtool: "source-map" 19 | }; 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-videojs 2 | react videojs wrapper 3 | 4 | ### Installtion 5 | ``` sh 6 | npm install react-videojs --save 7 | ``` 8 | 9 | ### Demo 10 | http://esportsguy.github.io/react-videojs/ 11 | 12 | ### Usage 13 | 14 | Video.js should be loaded globally. 15 | 16 | ``` html 17 | 18 | ``` 19 | 20 | ``` javascript 21 |