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
  • Loading branch information
seniorapple committed Jul 27, 2017
1 parent 2d43cae commit 82b4998
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 82b4998

Please sign in to comment.