Skip to content

Youtube-player: add support to toggle FullScreen #30485

Closed
@mattiLeBlanc

Description

@mattiLeBlanc

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.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: youtube-playerfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions