diff --git a/README.md b/README.md index c4d9009..779221c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Installing this component is very easy and it has just one dependency: [React](h $ bower install --save react-video ``` -- Or if you want to [download the lastest release](https://github.com/pedronauck/react-video/archive/v1.4.0.zip) and put in your website, it will work too! +- Or if you want to [download the lastest release](https://github.com/pedronauck/react-video/archive/v1.5.0.zip) and put in your website, it will work too! **NOTICE:** You need just one thing to make the component work. Put the [base component style](./dist/react-video.css) at the `
` tag. If you don't wanna use the `.css` extension, you can get the `.styl` or `.scss` extension at the folder `./lib`. @@ -55,6 +55,19 @@ The property `videoId` is optional, so you can use it or not. If you don't pass ); ``` +To handle errors when something happens, like your video can't be loaded, you can pass a callback with a prop `onError` in the component: + +```javascript + var _onError = function(err) { + console.log(err); + }; + + React.render( +