Loading Video.js +9 −23 Changes for Video.js: 9 added lines, 23 removed lines. Original line number Diff line number Diff line Loading @@ -248,35 +248,21 @@ export default class Video extends Component { onAudioBecomingNoisy: this._onAudioBecomingNoisy, }); if (this.props.poster && this.state.showPoster) { const posterStyle = { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, resizeMode: this.props.posterResizeMode || 'contain' ...StyleSheet.absoluteFillObject, resizeMode: this.props.posterResizeMode || 'contain', }; return ( <React.Fragment> <RCTVideo ref={this._assignRoot} {...nativeProps} /> {this.props.poster && this.state.showPoster && ( <View style={nativeProps.style}> <RCTVideo ref={this._assignRoot} {...nativeProps} /> <Image style={posterStyle} source={{uri: this.props.poster}} /> <Image style={posterStyle} source={{ uri: this.props.poster }} /> </View> ); } return ( <RCTVideo ref={this._assignRoot} {...nativeProps} /> )} </React.Fragment> ); } } Loading Loading
Video.js +9 −23 Changes for Video.js: 9 added lines, 23 removed lines. Original line number Diff line number Diff line Loading @@ -248,35 +248,21 @@ export default class Video extends Component { onAudioBecomingNoisy: this._onAudioBecomingNoisy, }); if (this.props.poster && this.state.showPoster) { const posterStyle = { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, resizeMode: this.props.posterResizeMode || 'contain' ...StyleSheet.absoluteFillObject, resizeMode: this.props.posterResizeMode || 'contain', }; return ( <React.Fragment> <RCTVideo ref={this._assignRoot} {...nativeProps} /> {this.props.poster && this.state.showPoster && ( <View style={nativeProps.style}> <RCTVideo ref={this._assignRoot} {...nativeProps} /> <Image style={posterStyle} source={{uri: this.props.poster}} /> <Image style={posterStyle} source={{ uri: this.props.poster }} /> </View> ); } return ( <RCTVideo ref={this._assignRoot} {...nativeProps} /> )} </React.Fragment> ); } } Loading