Skip to content
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

Closed
ursnj opened this issue Oct 3, 2019 · 5 comments
Closed

Video is getting paused immediately after starting #398

ursnj opened this issue Oct 3, 2019 · 5 comments

Comments

@ursnj
Copy link

ursnj commented Oct 3, 2019

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'}}
/>

@Sumit-Chakole
Copy link

Sumit-Chakole commented Oct 4, 2019

I too have same issue, you found any solution?

@valerusg
Copy link

valerusg commented Oct 7, 2019

Is happening the same problem as here #390 and here #161

Repository owner deleted a comment from srfaytkn Oct 9, 2019
@davidohayon669 davidohayon669 reopened this Oct 9, 2019
@davidohayon669
Copy link
Owner

Duplicate of #161

@davidohayon669 davidohayon669 marked this as a duplicate of #161 Oct 9, 2019
@architch
Copy link

architch commented Feb 19, 2021

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.
To avoid this , I removed the player out of the ScrollView and fixed it on top a parent View, post which the video did not pause while browsing through other elements on the screen.

@mjm918
Copy link

mjm918 commented May 17, 2022

i'm using PagerView and facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@davidohayon669 @Sumit-Chakole @architch @mjm918 @ursnj @valerusg and others