Skip to content

Commit f60142e

Browse files
committed
Readying demo and readme for alpha release
1 parent 77e7e89 commit f60142e

File tree

9 files changed

+15
-3
lines changed

9 files changed

+15
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
A customizeable HoC (Higher Order Component) for HTML5 Video that allows custom and configurable controls.
44

5+
V2 API has changed and is not backwards compatible. You can find the old documentation [here](https://github.com/mderrick/react-html5video/blob/master/README.md).
6+
57
[![Build Status](https://travis-ci.org/mderrick/react-html5video.svg?branch=master)](https://travis-ci.org/mderrick/react-html5video)
68
[![npm version](https://img.shields.io/npm/v/react-html5video.svg?style=flat-square)](https://www.npmjs.com/package/react-html5video)
79
[![npm downloads](https://img.shields.io/npm/dm/react-html5video.svg?style=flat-square)](https://www.npmjs.com/package/react-html5video)
810

9-
<img src="http://mderrick.github.io/react-html5video/example.png?v=1" align="center" height="337" width="600" />
11+
<img src="http://mderrick.github.io/react-html5video/example.v2.png?v=1" align="center" height="337" width="600" />
1012

1113
View the [demo](http://mderrick.github.io/react-html5video/).
1214

demo/assets/poster-big-buck-bunny.png

1.54 MB
Loading

demo/assets/poster-sintel-trailer.png

343 KB
Loading
File renamed without changes.

demo/assets/static/example.v2.png

1.5 MB
Loading

demo/browserstack.png

-13.9 KB
Binary file not shown.

demo/generateConfig.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path');
22
const webpack = require('webpack');
33
const ExtractTextPlugin = require('extract-text-webpack-plugin');
44
const HtmlWebpackPlugin = require('html-webpack-plugin');
5+
const CopyWebpackPlugin = require('copy-webpack-plugin');
56
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
67

78
const pkg = require('./../package.json');
@@ -54,6 +55,10 @@ module.exports = ({ optimize, extractCss, hot, publicPath = '/' }) => {
5455
new HtmlWebpackPlugin({
5556
template: path.resolve(srcPath, 'index.html')
5657
}),
58+
new CopyWebpackPlugin([{
59+
context: 'assets/static',
60+
from: '**/*'
61+
}]),
5762
new CaseSensitivePathsPlugin()
5863
]
5964
};

demo/src/components/App.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import styles from './App.css';
55
import 'reset-css/reset.css';
66
import vttEn from './../../assets/sintel-en.vtt';
77
import vttEs from './../../assets/sintel-es.vtt';
8+
import bigBuckBunnyPoster from './../../assets/poster-big-buck-bunny.png';
9+
import sintelTrailerPoster from './../../assets/poster-sintel-trailer.png';
810

911
const sintelTrailer = 'https://download.blender.org/durian/trailer/sintel_trailer-720p.mp4';
1012
const bigBuckBunny = 'http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov';
@@ -28,7 +30,8 @@ class App extends Component {
2830
onPlay={() => {
2931
this.refs.video2.videoEl.pause();
3032
}}
31-
className={styles.video}>
33+
className={styles.video}
34+
poster={sintelTrailerPoster}>
3235
<source src={sintelTrailer} type="video/mp4" />
3336
<track
3437
label="English"
@@ -50,7 +53,8 @@ class App extends Component {
5053
this.refs.video1.videoEl.pause();
5154
}}
5255
src={bigBuckBunny}
53-
className={styles.video}>
56+
className={styles.video}
57+
poster={bigBuckBunnyPoster}>
5458
</Video>
5559
</li>
5660
</ul>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"babel-runtime": "^6.23.0",
7373
"case-sensitive-paths-webpack-plugin": "^1.1.4",
7474
"chalk": "^1.1.3",
75+
"copy-webpack-plugin": "^4.0.1",
7576
"css-loader": "^0.25.0",
7677
"detect-port": "^1.0.6",
7778
"enzyme": "^2.6.0",

0 commit comments

Comments
 (0)