From 2abb25e68b6e5caa7d68e3cbfeab63789add2728 Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Wed, 13 Apr 2016 12:47:31 +0100 Subject: [PATCH] Add default props to readme --- README.md | 14 +++++++------- src/props.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c5f05a28..484e341c 100644 --- a/README.md +++ b/README.md @@ -72,15 +72,15 @@ Due to various restrictions, `ReactPlayer` is not guaranteed to function properl ### Props -Prop | Description ----- | ----------- +Prop | Description | Default +---- | ----------- | ------- `url` | The url of a video or song to play -`playing` | Set to `true` or `false` to pause or play the media -`volume` | Sets the volume of the appropriate player -`width` | Sets the width of the player -`height` | Sets the height of the player +`playing` | Set to `true` or `false` to pause or play the media | `false` +`volume` | Sets the volume of the appropriate player | `0.8` +`width` | Sets the width of the player | `640` +`height` | Sets the height of the player | `360` `className` | Pass in a `className` to set on the top level element -`progressFrequency` | The time between `onProgress` callbacks, in milliseconds +`progressFrequency` | The time between `onProgress` callbacks, in milliseconds | `1000` #### Callback props diff --git a/src/props.js b/src/props.js index 306d7290..41374609 100644 --- a/src/props.js +++ b/src/props.js @@ -30,9 +30,9 @@ export const propTypes = { export const defaultProps = { playing: false, + volume: 0.8, width: 640, height: 360, - volume: 0.8, progressFrequency: 1000, soundcloudConfig: { clientId: 'e8b6f84fbcad14c301ca1355cae1dea2'