Skip to content

Commit

Permalink
Add default props to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Apr 13, 2016
1 parent c05bd9d commit 2abb25e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2abb25e

Please sign in to comment.