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

Fullscreen mode closes after file uploading #26

Open
LavrovE opened this issue Aug 27, 2020 · 4 comments
Open

Fullscreen mode closes after file uploading #26

LavrovE opened this issue Aug 27, 2020 · 4 comments

Comments

@LavrovE
Copy link

LavrovE commented Aug 27, 2020

If i want to upload some files (inside fullscreen) - fullscreen instantly closes.
Can i prevent it?

@mirari
Copy link
Owner

mirari commented Aug 31, 2020

https://codepen.io/mirari/pen/YzqxyKj
I tried this and the fullscreen mode dosen't close.

May be it's because you clicking on a blank part of the page?

@LavrovE
Copy link
Author

LavrovE commented Aug 31, 2020

https://codepen.io/mirari/pen/YzqxyKj
I tried this and the fullscreen mode dosen't close.

May be it's because you clicking on a blank part of the page?
I click on button
Try on Chome:

  1. open fullscreen mode
  2. click on upload button
    result - fullscreen closes.
    One more moment:
    How can i open video in fullscreen , if we are in fullscreen mode already?

@heizhimacoder
Copy link

are you resolved ? input all have the same problem

@mirari
Copy link
Owner

mirari commented Jul 15, 2021

Sorry for not replying for so long.
This may not be the same issue.
Exiting fullscreen when selecting a file is probably unavoidable for newer versions of browsers, one idea is to call the fullscreen again in the callback after selecting the file.

https://stackoverflow.com/questions/61100567/how-to-stay-full-screen-when-trigger-upload-file

How can i open video in fullscreen , if we are in fullscreen mode already?

One way is to use the fullscreen api to specify a new target. One way is to set the video element with absolute positioning to fill the current fullscreen target.

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

3 participants