Youtube-player: add support to toggle FullScreen #30485
Labels
area: youtube-player
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P4
A relatively minor issue that is not relevant to core functions
Feature Description
I am creating my own controls to Start (playVideo) and Pause (pauseVideo( a video and I would also like to be able to add a fullscreen button outside of the youtube-player component.
There seems to be no function available for it and I also can't
requestFullscreen
on the iframe.Is there away, maybe via postMessage to tell the iframe to go trigger fullscreen?
If not, can this be provided?
The Youtube API doesn't mention anything. So I guess it is not possible.
Use Case
Toggle fullscreen when youtube controls are disabled, outside of the youtube component.
We want to use it on a Smart TV and using the D-pad arrows on the remote to go to the fullscreen icon is not very convenient. Being able to programatically go fullscreen should not be anymore insecure as allowing to Play or Pause, I think.
The text was updated successfully, but these errors were encountered: