Skip to content

Commit

Permalink
add onload documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tulsileathers authored and leoasis committed Sep 14, 2017
1 parent c35accc commit 4b943e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MyComponentWithSound extends React.Component {
* *volume (number)*: The current sound's volume. A value between 0 and 100.
* *autoLoad (boolean)*: If the sound should start loading automatically (defaults to `false`).
* *onLoading (function)*: Function that gets called while the sound is loading. It receives an object with properties `bytesLoaded`, `bytesTotal` and `duration`.
* *onLoad (function)*: Function that gets called after the sound has finished loading. It receives an object with property `success`.
* *onPlaying (function)*: Function that gets called while the sound is playing. It receives an object with properties `position` and `duration`.
* *onPause (function)*: Function that gets called when the sound is paused. It receives an object with properties `position` and `duration`.
* *onResume (function)*: Function that gets called while the sound is resumed playing. It receives an object with properties `position` and `duration`.
Expand Down

0 comments on commit 4b943e9

Please sign in to comment.