-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video is getting paused immediately after starting #398
Comments
I too have same issue, you found any solution? |
Duplicate of #161 |
Video is paused when the player not fully displayed on the screen. In my case I was putting it inside the ScrollView and when scrolled it down a bit, the video is paused. |
i'm using |
this is the code im using
<YouTube
videoId="umAgdVTBae0" // The YouTube video ID
apiKey={APP_CONFIG.youtubeKey}
play={true} // control playback of video with true/false
showFullscreenButton
fullscreen={this.state.fullscreen} // control whether the video should play in fullscreen or inline
onChangeFullscreen={e => {
this.setState({fullscreen: e.isFullscreen});
}}
// loop // control whether the video should loop when ended
// onReady={e => this.setState({isReady: true})}
// onChangeState={e => this.setState({ status: e.state })}
// onChangeQuality={e => this.setState({ quality: e.quality })}
onError={e => console.log('ERROR', e)}
controls={2}
style={{flex: 1, alignSelf: 'stretch'}}
/>
The text was updated successfully, but these errors were encountered: