From 794350d61feaeb1acd0fb68780f52d6c1c6149d3 Mon Sep 17 00:00:00 2001 From: Andrew Beaven Date: Tue, 24 Oct 2017 13:29:56 +1300 Subject: [PATCH] Adds loop prop to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6cafd14..188ec60 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ class MyComponentWithSound extends React.Component { * *position (number)*: The current position the sound is at. Use this to make the component a controlled component, meaning that you must update this prop on every `onPlaying` callback. You should use either this prop or `playFromPosition`, but not both. * *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`). +* *loop (boolean)*: If the sound should continue playing in a loop (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 `loaded`, a boolean set to true if the sound has finished loading successfully. * *onPlaying (function)*: Function that gets called while the sound is playing. It receives an object with properties `position` and `duration`.