Skip to content

Commit

Permalink
Add progressInterval logic back in to onProgress
Browse files Browse the repository at this point in the history
progressInterval change was not moved to Player component in 42a030e6cfa721eb15c6af2b27c828160ebcae25
Fixes cookpete/react-player#339
  • Loading branch information
albanqoku committed Feb 26, 2018
1 parent 4d3a5d9 commit b17501e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class Player extends Component {
this.prevLoaded = progress.loaded
}
}
this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency)
this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval)
}
seekTo (amount) {
// When seeking before player is ready, store value and seek later
Expand Down

0 comments on commit b17501e

Please sign in to comment.