flutter_live icon indicating copy to clipboard operation
flutter_live copied to clipboard

How To Stop Automatic Fullscreen without Disabling Fullscreen

Open VictorLekweuwa opened this issue 4 years ago • 1 comments

Hello,

Following your example code, I have the following widget.

fijkplayer.FijkView(
                player: _player.fijk,
                  panelBuilder: fijkplayer.fijkPanel2Builder(),
                color: Colors.black,
                fs: false,
                fit: fijkplayer.FijkFit.ar16_9,
                fsFit: fijkplayer.FijkFit.fill
              )

My problem is that when fs is true, the video automatically tries to play fullscreen but when fs is false, the video plays regular size but cannot go fullscreen. I basically want the best of both worlds: I want the video to play with regular size but have the ability to go fullscreen if the user clicks on the fullscreen button.

VictorLekweuwa avatar Jul 04 '21 19:07 VictorLekweuwa

I face the same issue. But I found that set fs:false means disable fullscreen. I found the source code in class RealtimePlayer, if you follow the example code ,don't call initState() image

MaimiHu avatar Apr 17 '23 08:04 MaimiHu