Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Stop Automatic Fullscreen without Disabling Fullscreen #11

Open
VictorLekweuwa opened this issue Jul 4, 2021 · 1 comment
Open

Comments

@VictorLekweuwa
Copy link

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.

@MaimiHu
Copy link

MaimiHu commented Apr 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants