How To Hide The Youtube Controls In Embedded Videos

In this topic,

We are going to see how to hide the YouTube controls in embedded videos.

First of all, open a video on YouTube then click on the share button, then click the embed button.

After clicking on the embed button a popup will be open.

Then copy the iframe and place it in your HTML.

<iframe width="560" height="315" src="https://www.youtube.com/embed/q5jEY92Amgw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

If you want how to set an embedded YouTube video autoplay and loop so please review my this blog.

https://www.thecodehubs.com/how-to-set-an-embedded-youtube-video-autoplay-and-loop/

Now if I want to hide the video control, first I have to pass the “controls” parameters in the link.

Now I will pass the parameter in iframe src.

<iframe width="560" height="315" src="https://www.youtube.com/embed/q5jEY92Amgw?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Now the controller is hidden from video.

Review the below video.

I hope you guys found something useful  ??

Submit a Comment

Your email address will not be published.

Subscribe

Select Categories