betterplayer icon indicating copy to clipboard operation
betterplayer copied to clipboard

[BUG] Full-screen crash Android

Open xarmatura opened this issue 3 years ago • 2 comments

It's reproduced on any Android with flutter SDK >= 2.10 in release mode. @jhomlala Could you update the project to the new SDK?

xarmatura avatar Feb 28 '22 12:02 xarmatura

try this bro

BetterPlayerConfiguration betterPlayerConfiguration =
BetterPlayerConfiguration(
    aspectRatio: 9/18,
    fit: BoxFit.contain,
    autoPlay: false,
    controlsConfiguration :BetterPlayerControlsConfiguration(
      showControls: true,
      enableSkips: false,
      enableFullscreen: true,
      // enableMute : false,
      // enableProgressText: false,
      // enableProgressBar :false,
      enablePip:false,
      enablePlayPause:false,
      enableOverflowMenu: false,
    )
);

and the widget

Container(
      color: Colors.black,
      height :double.infinity,
      width : double.infinity,
      child: BetterPlayerMultipleGestureDetector(
        child: AspectRatio(
          aspectRatio: 9 / 15,
          child: BetterPlayer(
            controller: _betterPlayerController,
          ),
        ),
      ),

    )

i have used this for full screen

aravind-b-dev avatar Apr 20 '22 10:04 aravind-b-dev

@xarmatura Please provide crash logs and sample code.

jhomlala avatar Apr 25 '22 17:04 jhomlala