jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
917 stars 972 forks source link

Exit page on back press #1192

Open xzghx opened 1 year ago

xzghx commented 1 year ago

Hi. I want to show video in landscape mode by default (and this is ok and is done ) and on back press of device poping the page not going to portrait mode. So I want to exit the page on back button of device press, but it just goes to portraite mode and then I should press device back button again to exit. Is there any flag to veto this behavioror add some flag to veto back button?

    BetterPlayerConfiguration betterPlayerConfiguration =
      const  BetterPlayerConfiguration(
      useRootNavigator: true,
      autoDispose: true,
      fit: BoxFit.cover,
      autoDetectFullscreenAspectRatio: true,
      fullScreenByDefault: true,
      autoPlay: true,
      autoDetectFullscreenDeviceOrientation: true,
    );
flutter-itzoon commented 1 year ago

Could you get any solution?

waqadArshad commented 3 months ago

found any solution?