Skip to content

Commit

Permalink
Fix onProgress bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Aug 31, 2015
1 parent b7ca5a6 commit 1bf018e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class Base extends Component {
// Invoke player methods based on incoming props
if (this.props.url !== nextProps.url) {
this.play(nextProps.url)
this.onProgress({ played: 0, loaded: 0 })
this.props.onProgress({ played: 0, loaded: 0 })
} else if (!this.props.playing && nextProps.playing) {
this.play()
} else if (this.props.playing && !nextProps.playing) {
Expand Down

0 comments on commit 1bf018e

Please sign in to comment.