Skip to content

Commit

Permalink
Add onError support to FilePlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Nov 13, 2015
1 parent 842bc34 commit 63f1660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. This projec
### Unreleased

* Fix [autoplay bug](https://github.com/CookPete/react-player/issues/10)
* Add `onError` to `FilePlayer`
* [Full commit list](https://github.com/CookPete/react-player/compare/v0.2.0...master)


Expand Down
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.onplay = this.props.onPlay
this.player.onpause = this.props.onPause
this.player.onended = this.props.onEnded
this.player.onerror = this.props.onError
super.componentDidMount()
}
shouldComponentUpdate (nextProps) {
Expand Down

0 comments on commit 63f1660

Please sign in to comment.