youtube_player_flutter
youtube_player_flutter copied to clipboard
[iFrame package] how to enter fullscreen
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.
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.
I'm having the same problem. Anyone?
Would be a nice feature to programatically enter fullscreen, when user switches to landscape mode.
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
@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
_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?