We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For all of the videos I've tried, the fullscreen button is enabled on iOS but disabled on Android. Sample code below:
<YoutubePlayer videoId={"c8deRYotdng"} // The YouTube video ID play onError={this.onYoutubeError} height={height + 20} width={screenWidth + 20} initialPlayerParams={{ preventFullScreen: false, iv_load_policy: 3, modestbranding: 1, rel: 0 }} />
The text was updated successfully, but these errors were encountered:
Hey, just to be clear - you want it disabled, right?
Sorry, something went wrong.
Oh no, I'm trying to get it enabled on both platforms.
This is because fullscreen is disabled by default in android webviews. You need to pass in webviewProps like so -
webViewProps={{ allowsFullscreenVideo: true }}
more info here and here
I will link this in with the preventFullScreen key by default in a future update. Thanks :)
preventFullScreen
Ah, you're right. Thanks alot!
add fullscreen webview prop handling (#6, #8)
7b57a0f
No branches or pull requests
For all of the videos I've tried, the fullscreen button is enabled on iOS but disabled on Android. Sample code below:
The text was updated successfully, but these errors were encountered: