Autoplay of YouTube videos can be a necessity for many people who are managing a specific website.
This means that if at a certain moment we have thought about use a YouTube video within a website and we want the visitor to save the trouble of having to press the "play" button, so we could give them a little help with the trick that we will mention below.
Find a YouTube video embed code
Those who manage a specific web page or blog know perfectly well that in said work environment HTML instructions can be used mostly to achieve specialized functions. In order to achieve our objective, we will use the embed code that YouTube offers us, and must proceed as follows:
- We go to the YouTube portal.
- We are looking for the YouTube video in which we are interested.
- Once we find it, we must select the option «share»Located at the bottom of the video.
- We will be shown some additional options, having to choose the one that says «insert«.
At that very moment the embed code will appear, to which we musts copy and paste within the website where we wantI know this video is present. Now, we will have to add a small additional rule to the embed code:
? rel = 0 & autoplay = 1
The code that we have placed at the top is the one that we must add within the one that YouTube has provided us. So that you have a better idea of where you have to insert it, we will show you the following screenshot.
As you can admire in the previous screenshot, within the embed code that YouTube has provided us is the link of the video located between quotation marks; to the additional code that we have suggested at the top you have to place it just before the final quotes as we have highlighted in the previous screenshot.
Thanks!! It is in the only place where I found the good code to put the automatic reproduction. Perfect!! Greetings
Thank you very much for the comment and thank you for your visit.
In case you want to play several videos at the same time, how could you do it?
On facebook it doesn't work. I don't know how to make it autoplay.
good code great
how it works for facebook ... I tried and it does not reproduce automatically
I HAVE NOT BEEN ABLE TO MAKE IT REPLAY AUTOMATICALLY ON FACEBOOK THERE IS ANY OTHER SYSTEM