Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide Youtube controls but show the Fullscreen button?

I am trying to hide the controls, but show the youtube fullscreen button, so that the player looks like the vimeo player.

I have added the following parameters after my embed URL:?&controls=0&showinfo=0&rel=0&fs=1

However, it only hides all of the controls. Is it possible to only show full screen button?

Note: the <iframe allowfullscreen> has this option set.

like image 992
Jacob Raccuia Avatar asked Sep 19 '25 07:09

Jacob Raccuia


1 Answers

As of September 2018, this doesn't seem to be possible directly with the YouTube iFrame Player API. You can hide all controls (controls=0), or you can hide the fullscreen button specifically (fs=0), but you cannot exclusively display the fullscreen button by itself (i.e., controls=0&fs=1 won't work.)

However, conceivably you can hide all controls and overlay your own custom fullscreen button, and use the browser Fullscreen API to invoke fullscreen on the iframe.

like image 199
msun Avatar answered Sep 22 '25 03:09

msun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!