From 00f9671a12bf09d0160653391a680165d6098adf Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Mon, 4 Jan 2016 20:51:03 +0000 Subject: [PATCH] Fix FilePlayer not loading on mount --- src/players/FilePlayer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/players/FilePlayer.js b/src/players/FilePlayer.js index d8d5274b..eb3bf09e 100644 --- a/src/players/FilePlayer.js +++ b/src/players/FilePlayer.js @@ -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