Skip to content

Commit

Permalink
Merge pull request #38 from utilitywarehouse/master
Browse files Browse the repository at this point in the history
Passes the ignoreSilentSwitch parameter to react-native-video
  • Loading branch information
Kyle Milloy authored Aug 9, 2017
2 parents e4089fc + 4a19ee1 commit 378643a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default class VideoPlayer extends Component {
this.opts = {
playWhenInactive: this.props.playWhenInactive || false,
playInBackground: this.props.playInBackground || false,
ignoreSilentSwitch: this.props.ignoreSilentSwitch || 'ignore',
repeat: this.props.repeat || false,
title: this.props.title || '',
};
Expand Down Expand Up @@ -1028,6 +1029,7 @@ export default class VideoPlayer extends Component {
muted={ this.state.muted }
rate={ this.state.rate }

ignoreSilentSwitch={ this.opts.ignoreSilentSwitch }
playInBackground={ this.opts.playInBackground }
playWhenInactive={ this.opts.playWhenInactive }
repeat={ this.opts.repeat }
Expand Down

0 comments on commit 378643a

Please sign in to comment.