appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

[ BUG ] : On exiting landscape video full-screen while device is also landscape, orientation switches to portrait for a while #209

Closed japatel225 closed 8 months ago

japatel225 commented 9 months ago

Plugin name Appinio video player 1.2.2

Describe the bug Using device in landscape orientation, viewing a landscape video in full-screen. When video ends and exits full-screen, the orientation changes to portrait for a while and then comes back to landscape.

https://github.com/appinioGmbH/flutter_packages/assets/51909213/0dc3a2cb-91e7-4e3a-ba83-c15b8616e79c

To Reproduce Can reproduce the issue with the below settings and viewing a landscape video while device is landscape -

CustomVideoPlayerSettings(
  enterFullscreenOnStart: true,
  exitFullscreenOnEnd: true,
  deviceOrientationsAfterFullscreen: DeviceOrientation.values,
),

Expected behavior The orientation should stay landscape when video ends and exits full-screen.

Smartphone