@lls/lls-audio 0.0.46 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/player/Audio.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lls/lls-audio",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "main": "index.js",
5
5
  "devDependencies": {
6
6
  "@kadira/storybook": "^2.21.0",
package/player/Audio.js CHANGED
@@ -79,6 +79,7 @@ var Player = function (_Component) {
79
79
  };
80
80
 
81
81
  _this.onPlay = function () {
82
+ cancelAnimationFrame(_this.requestAnimationId);
82
83
  var _this$state$currentRa = _this.state.currentRange,
83
84
  startTime = _this$state$currentRa.startTime,
84
85
  endTime = _this$state$currentRa.endTime;
@@ -207,9 +208,11 @@ var Player = function (_Component) {
207
208
  }, {
208
209
  key: 'onDurationChange',
209
210
  value: function onDurationChange() {
211
+ var autoPlay = this.props.autoPlay;
210
212
  var duration = this.refs.player.duration;
211
213
 
212
214
  this.setStateWithCallback({
215
+ play: autoPlay,
213
216
  currentTime: 0,
214
217
  duration: duration,
215
218
  currentRange: { startTime: 0, endTime: duration }