Skip to content

Commit

Permalink
Move initial setVolume to onStart
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
cookpete committed Jul 25, 2016
1 parent 3dfdc46 commit d792c61
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 @@ -48,11 +48,11 @@ export default class Base extends Component {
}
onPlay = () => {
if (this.startOnPlay) {
this.setVolume(this.props.volume)
this.props.onStart()
this.startOnPlay = false
}
this.props.onPlay()
this.setVolume(this.props.volume)
if (this.seekOnPlay) {
this.seekTo(this.seekOnPlay)
this.seekOnPlay = null
Expand Down

0 comments on commit d792c61

Please sign in to comment.