We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab3fb5 commit c35acccCopy full SHA for c35accc
src/index.js
@@ -53,6 +53,7 @@ export default class Sound extends React.Component {
53
playFromPosition: T.number,
54
volume: T.number,
55
onLoading: T.func,
56
+ onLoad: T.func,
57
onPlaying: T.func,
58
onPause: T.func,
59
onResume: T.func,
@@ -67,6 +68,7 @@ export default class Sound extends React.Component {
67
68
volume: 100,
69
onLoading: noop,
70
onPlaying: noop,
71
+ onLoad: noop,
72
onPause: noop,
73
onResume: noop,
74
onStop: noop,
@@ -152,6 +154,9 @@ export default class Sound extends React.Component {
152
154
whileplaying() {
153
155
props.onPlaying(this);
156
},
157
+ onload() {
158
+ props.onLoad(this);
159
+ },
160
onpause() {
161
props.onPause(this);
162
0 commit comments