Skip to content

Commit

Permalink
Fix FilePlayer not loading on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jan 4, 2016
1 parent 5dd60c6 commit 00f9671
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class FilePlayer extends Base {
this.player.onpause = this.props.onPause
this.player.onended = this.props.onEnded
this.player.onerror = this.props.onError
super.componentDidMount()
}
load (url) {
this.player.src = url
Expand Down

0 comments on commit 00f9671

Please sign in to comment.