From b785060b3000e83c496e275b2729464623fcbaa5 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Wed, 20 Jun 2018 16:52:48 -0700 Subject: [PATCH] Add prop type for audioOnly --- Video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Video.js b/Video.js index 25e86d71..da29efb8 100644 --- a/Video.js +++ b/Video.js @@ -129,7 +129,7 @@ export default class Video extends Component { }; _onPlaybackRateChange = (event) => { - if (this.state.showPoster && (event.nativeEvent.playbackRate !== 0) && (!this.props.audioOnly)) { + if (this.state.showPoster && event.nativeEvent.playbackRate !== 0 && !this.props.audioOnly) { this.setState({showPoster: false}); } @@ -282,6 +282,7 @@ Video.propTypes = { ignoreSilentSwitch: PropTypes.oneOf(['ignore', 'obey']), disableFocus: PropTypes.bool, controls: PropTypes.bool, + audioOnly: PropTypes.bool, currentTime: PropTypes.number, progressUpdateInterval: PropTypes.number, onLoadStart: PropTypes.func,