react-howler
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
# 5.1.0 - 2021-06-24 | ||
- Added: `onSeek` and `onPlayError` props (#117) | ||
# 5.0.0 - 2020-11-14 | ||
@@ -5,3 +9,3 @@ | ||
- Removed: Seek Property (#59, #102, #103) | ||
- Removed: Seek Property (#59, #101, #103) | ||
@@ -8,0 +12,0 @@ # 4.0.0 - 2020-09-23 |
@@ -85,2 +85,3 @@ 'use strict'; | ||
onplay: props.onPlay, | ||
onplayerror: props.onPlayError, | ||
onpause: props.onPause, | ||
@@ -90,2 +91,3 @@ onvolume: props.onVolume, | ||
onload: props.onLoad, | ||
onseek: props.onSeek, | ||
onloaderror: props.onLoadError, | ||
@@ -325,5 +327,7 @@ html5: props.html5 | ||
onPlay: _propTypes2.default.func, | ||
onPlayError: _propTypes2.default.func, | ||
onVolume: _propTypes2.default.func, | ||
onStop: _propTypes2.default.func, | ||
onLoad: _propTypes2.default.func, | ||
onSeek: _propTypes2.default.func, | ||
onLoadError: _propTypes2.default.func, | ||
@@ -344,5 +348,7 @@ html5: _propTypes2.default.bool | ||
onPlay: _utils.noop, | ||
onPlayError: _utils.noop, | ||
onVolume: _utils.noop, | ||
onStop: _utils.noop, | ||
onLoad: _utils.noop, | ||
onSeek: _utils.noop, | ||
onLoadError: _utils.noop, | ||
@@ -349,0 +355,0 @@ html5: false |
{ | ||
"name": "react-howler", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "A React.js wrapper for howler.js (audio player)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -77,2 +77,4 @@ # react-howler | ||
onEnd | noop | Called when media finishes playing | ||
onSeek | noop | Called when the sound has been seeked. The first parameter is the ID of the sound. `onSeek(id)` | ||
onPlayError | noop | Called when the sound is unable to play. The first parameter is the ID of the sound and the second is the error message/code. `onPlayError(id, errorCode)` | ||
@@ -79,0 +81,0 @@ # Methods |
24416
2.39%306
2%174
1.16%