Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you hide the controls of a YouTube embed without enabling autoplay?

Tags:

youtube

<iframe width="100%" height="100%" src="//www.youtube.com/embed/qUJYqhKZrwA?autoplay=1&showinfo=0&controls=0" frameborder="0" allowfullscreen> 

If you remove ?autoplay=1 the video does not work. Looks like you cannot use the controls parameter without autoplay enabled.

Not sure why this is not mentioned in the YouTube embed writeup.

Hope I'm wrong.

https://developers.google.com/youtube/player_parameters#controls

like image 206
Joe Isaacson Avatar asked Dec 20 '13 19:12

Joe Isaacson


People also ask

How do I embed a YouTube video without branding on YouTube?

You can add ? modestbranding=1 to your url. That will remove the logo. This parameter lets you use a YouTube player that does not show a YouTube logo.

How do I remove the YouTube Play button?

Scroll down to the bottom and tap on the "Accessibility" option. Turn off the "Accessibility player". Tap on the slider next to the "Accessibility player" to disable the extra video player controls in the player. The slider will turn grey.


1 Answers

Set autoplay=0

<iframe width="100%" height="100%" src="//www.youtube.com/embed/qUJYqhKZrwA?autoplay=0&showinfo=0&controls=0" frameborder="0" allowfullscreen> 

As seen here: Autoplay=0 Test

like image 93
Alice Avatar answered Oct 15 '22 07:10

Alice