Open zf19820621 opened 5 years ago
I have another question about 'SystemChrome.setPreferredOrientations', does it works with ios, why it is with an android judgement.
Any chance to not change the oriantations to landscape in fullscreen on Android? I am having a portrait movie which I am playing. However in fullscreen it changes to landscape and for that reason is not using the full screen. I did set the correct aspect ratio, but of course this doesn't give a change.
You can find a pull request to solve this issue backwards compatible.
follow and raise this pr for callbacks on enter and leave: https://github.com/brianegan/chewie/pull/289
When i toggle the video player into fullscreen model, the main page with embedded video player will be updated in landscape model, however it is designed for portrait model. It is not what i want. The code of chewie player is as follow:
Future _pushFullScreenWidget(BuildContext context) async {
final isAndroid = Theme.of(context).platform == TargetPlatform.android;
final TransitionRoute route = PageRouteBuilder(
settings: RouteSettings(isInitialRoute: false),
pageBuilder: _fullScreenRoutePageBuilder,
);
} }
I think it is more reasonable with next code order. If enter fullscreen, call push route first, then change orientation; if exit fullscreen, change orientation then pop and show main page, what do you think? My english is not well, excuse me!