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

The "rel" property doesn't work iOS. Though set to false I can see video suggestions at end of video. #378

Closed
chetan-zalake opened this issue Jul 27, 2019 · 2 comments

Comments

@chetan-zalake
Copy link

chetan-zalake commented Jul 27, 2019

I tried a lot but no success. Please suggest. Let me know if anyone faced the same issue and resolved. Below is the code how I setup player.

<YouTube
apiKey=""
videoId= {Platform.OS === 'ios' ? this.props.videoId : this.props.navigation.state.params.videoId} // The YouTube video ID
play={Platform.OS === 'ios' ? false : true} // control playback of video with true/false
fullscreen={this.state.fullscreen} // control whether the video should play in fullscreen or inline
loop={true} // control whether the video should loop when ended
// controls={2}
playsInline={Platform.OS === 'ios' ? true : false}
modestbranding={true}
showFullscreenButton = {false}
resumePlayAndroid={false}
rel = {false}
onReady={(event) => this.isPlayerReady(event)}
onChangeState={(event) => this.onChangeState(event)}
onChangeQuality={e => this.setState({ quality: e.quality })}
onError={e => this.setState({ error: e.error })}
style={{ width: '100%', height: '40%' }}
/>

@elango
Copy link

elango commented Aug 10, 2019

+1

@davidohayon669
Copy link
Owner

@chetan-zalake In my experience this is ignored in the iOS version. Not something this library can override

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

No branches or pull requests

3 participants