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
philip-luther committed Nov 22, 2024
1 parent c553761 commit b04f54f
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 b04f54f

Please sign in to comment.