Skip to content

Commit

Permalink
Pass errors when playing files through to onError callback
Browse files Browse the repository at this point in the history
Fixes #200
  • Loading branch information
cookpete committed Jul 27, 2017
1 parent 8b3c6d0 commit 5533265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class FilePlayer extends Base {
}
}
play () {
this.player.play()
this.player.play().catch(this.props.onError)
}
pause () {
this.player.pause()
Expand Down

0 comments on commit 5533265

Please sign in to comment.