react-sound
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -209,2 +209,5 @@ 'use strict'; | ||
} | ||
}, | ||
onbufferchange: function onbufferchange() { | ||
instance.props.onBufferChange(this.isBuffering); | ||
} | ||
@@ -258,2 +261,3 @@ }, function (sound) { | ||
onFinishedPlaying: _propTypes2.default.func, | ||
onBufferChange: _propTypes2.default.func, | ||
autoLoad: _propTypes2.default.bool, | ||
@@ -273,2 +277,3 @@ loop: _propTypes2.default.bool | ||
onFinishedPlaying: noop, | ||
onBufferChange: noop, | ||
autoLoad: false, | ||
@@ -275,0 +280,0 @@ loop: false |
{ | ||
"name": "react-sound", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "React Sound component using soundmanager2", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -74,2 +74,3 @@ # react-sound | ||
* *onFinishedPlaying (function)*: Function that gets called when the sound finishes playing (reached end of sound). It receives no parameters. | ||
* *onBufferChange (function)*: Function that gets called when the sound buffering status changes. It receives a single boolean representing the buffer state. | ||
@@ -76,0 +77,0 @@ ## How to contribute |
Sorry, the diff of this file is not supported yet
215252
237
79