-
Notifications
You must be signed in to change notification settings - Fork 822
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
There is a problem when in fullsecrren[BUG] #253
Comments
Are you wrapping your player with |
void initState() { @OverRide
} |
I faced this bug also. Waiting for the fix |
UPDATE: Found the issue. The documentation is partly to blame as it does not clearly mention that if you use an player.dart class VideoPage extends StatelessWidget {
final String title;
final String videoId;
VideoPage({
this.title,
this.videoId,
});
@override
Widget build(BuildContext context) {
final YoutubePlayerController controller = YoutubePlayerController(
initialVideoId: videoId,
flags: YoutubePlayerFlags(
autoPlay: false,
hideThumbnail: false,
),
);
return YoutubePlayerBuilder(
player: YoutubePlayer(controller: controller),
builder: (_, Widget player) {
return Scaffold(
appBar: buildAppBar(
context: context,
title: title,
),
body: player,
);
},
);
}
} UPDATE 2: @sarbagyastha, might want to clarify that in the docs. Thanks. |
Thank you man, that worked. I still have the BottomNavigationBar showing at the bottom from the main.dart but I think that is another problem. |
@lucasagazzani, can you please share the complete code? I am trying the example app, currently, I see that it comes back to portrait mode as soon as I click the full-screen mode. |
I am also getting the same issue when I click the full-screen mode button it automatically switched to portrait mode within a few seconds. It happens for example android app also. |
@vinothvino42 This is caused by the layout builder |
Describe the bug
When pressing the full screen it doesn't hide the appbar or and it also doesn't hide anything that is in the same body as the YouTube video player, the full screen becomes scrolable.
Also some of the buttons in the controller won't work, like: whatch later, share or the acount
Expected behavior
I would like that when full screen clicked to only show the video player and that the tubnaills would be clicklable .
Screenshots
The text was updated successfully, but these errors were encountered: