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

[iFrame package] how to enter fullscreen #346

Open
jimmyff opened this issue Aug 26, 2020 · 6 comments
Open

[iFrame package] how to enter fullscreen #346

jimmyff opened this issue Aug 26, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@jimmyff
Copy link

jimmyff commented Aug 26, 2020

Thank you for the iframe, seems great so far.

However I cannot find how to switch to fullscreen mode programatically. I see in the example you have omitted the fullscreen button also. Is this not possible?

I know that you can set the param to show the button on the player, but to be able to trigger this from outside the player.

@jimmyff jimmyff added the bug Something isn't working label Aug 26, 2020
@bottle-rocket-11
Copy link

bottle-rocket-11 commented Feb 11, 2021

Any solution to this? I have the same problem. I can't even press on the button as it is under the YT video name.

Please let me know if you have a workaround or tips.

@lucassampaio-pixelwolf
Copy link

I'm having the same problem. Anyone?

@pawangjain
Copy link

Would be a nice feature to programatically enter fullscreen, when user switches to landscape mode.

@jaskiratAtNexG
Copy link

jaskiratAtNexG commented Jun 1, 2022

any update on this I cannot find how to switch to fullscreen mode programatically i am trying invoke javascript function but it is not working

@jaskiratAtNexG
Copy link

jaskiratAtNexG commented Jun 1, 2022

@jimmyff @hugopretorius914 @pawangjain @lucassampaio-pixelwolf yall can use this I just figured it out
_controller.invokeJavascript('document.body.requestFullscreen()'); and close this issue as soon as possible

@pawangjain
Copy link

pawangjain commented Nov 21, 2022

_controller.invokeJavascript('document.body.requestFullscreen()');

Hello @jaskiratAtNexG

Below is the error log when i run your code on button press.

[log] Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. [log] Uncaught (in promise) TypeError: fullscreen error

Is there anything i am doing wrong or missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants