Expose fullscreen method (Feature Request)
Hello!
Since the player is obviosly able to switch to fullscreen, it would be nice to expose this functionality.
This would make creating our own controls much more easy as well as taking advantage of native functionality, should it be available.
There was a github issue like this, but it is closed without actually adressing it.
+1; It would also be nice to capture this event and cancel it in order to create a implementation yourself, with still using the button in the control bar.
I agree, it is frustrating that this has not been addressed yet.
This is actually exposed (didn't check if this is a new API or not but I'm in 2.20.1). What you have to do is:
- iframe has
allow="fullscreen"(in my case it wasallow="autoplay; fullscreen") - iframe has attribute
allowfullscreen - URL has
&allowfullscreen=1(ex:https://player.vimeo.com/video/{{ videoId }}?autoplay=1&loop=1&autopause=0&background=1&muted=1&allowfullscreen=true)
Source: https://www.allowfullscreen.com/vimeo
Then when you run player.requestFullscreen(), it enters fullscreen mode.
This was implemented in #562.