davidohayon669 / react-native-youtube

A <YouTube/> component for React Native.
MIT License
1.16k stars 472 forks source link

Youtube Video pauses when we rotate screen from landscape to portrait #510

Open cw-sanjeev opened 3 years ago

cw-sanjeev commented 3 years ago

<YouTube ref={this._youTubeRef} apiKey={constants.VIDEO_API_KEY} videoId={this.props.videoId} play={true} fullscreen={true} showFullscreenButton={false} onChangeState={(event) => { this.handlePlayerStatus(event.state); }} onChangeFullscreen={(event) => { this.handleFullscreen(event.isFullscreen); }} />

react version 0.60.5

Youtube video plays in full screen in landscape but soon pauses when we rotate the screen to portrait