From 55332654b32070d7b2e204233ecd54173fbf04ef Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Thu, 27 Jul 2017 13:45:17 +0100 Subject: [PATCH] Pass errors when playing files through to onError callback Fixes https://github.com/CookPete/react-player/issues/200 --- src/players/FilePlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/players/FilePlayer.js b/src/players/FilePlayer.js index e1d3397e..a160e2de 100644 --- a/src/players/FilePlayer.js +++ b/src/players/FilePlayer.js @@ -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()