Skip to content

Commit

Permalink
Pass fileConfig down correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jun 21, 2016
1 parent 905df9e commit 1dffcca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ export default class ReactPlayer extends Component {
}
renderPlayer = Player => {
const active = Player.canPlay(this.props.url)
const { youtubeConfig, soundcloudConfig, vimeoConfig, ...activeProps } = this.props
const { youtubeConfig, soundcloudConfig, vimeoConfig, fileConfig, ...activeProps } = this.props
const props = active ? { ...activeProps, ref: 'player' } : {}
return (
<Player
key={Player.displayName}
youtubeConfig={youtubeConfig}
soundcloudConfig={soundcloudConfig}
vimeoConfig={vimeoConfig}
fileConfig={fileConfig}
{...props}
/>
)
Expand Down

0 comments on commit 1dffcca

Please sign in to comment.