flutter_live
flutter_live copied to clipboard
How To Stop Automatic Fullscreen without Disabling Fullscreen
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.
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()
