Add prop type for audioOnly
This commit is contained in:
		
							
								
								
									
										3
									
								
								Video.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Video.js
									
									
									
									
									
								
							| @@ -129,7 +129,7 @@ export default class Video extends Component { | |||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   _onPlaybackRateChange = (event) => { |   _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}); |       this.setState({showPoster: false}); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -282,6 +282,7 @@ Video.propTypes = { | |||||||
|   ignoreSilentSwitch: PropTypes.oneOf(['ignore', 'obey']), |   ignoreSilentSwitch: PropTypes.oneOf(['ignore', 'obey']), | ||||||
|   disableFocus: PropTypes.bool, |   disableFocus: PropTypes.bool, | ||||||
|   controls: PropTypes.bool, |   controls: PropTypes.bool, | ||||||
|  |   audioOnly: PropTypes.bool, | ||||||
|   currentTime: PropTypes.number, |   currentTime: PropTypes.number, | ||||||
|   progressUpdateInterval: PropTypes.number, |   progressUpdateInterval: PropTypes.number, | ||||||
|   onLoadStart: PropTypes.func, |   onLoadStart: PropTypes.func, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user