Trick to insert a YouTube Video with automatic playback

youtube tricks

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.

youtube video insert code

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.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   To me said

    Thanks!! It is in the only place where I found the good code to put the automatic reproduction. Perfect!! Greetings

    1.    Rodrigo Ivan Pacheco said

      Thank you very much for the comment and thank you for your visit.

  2.   Carlos said

    In case you want to play several videos at the same time, how could you do it?

  3.   Pink said

    On facebook it doesn't work. I don't know how to make it autoplay.

  4.   cristhian said

    good code great

  5.   Isabel Laiseca said

    how it works for facebook ... I tried and it does not reproduce automatically

  6.   magdalenogarciamiguel magdaleno garcia said

    I HAVE NOT BEEN ABLE TO MAKE IT REPLAY AUTOMATICALLY ON FACEBOOK THERE IS ANY OTHER SYSTEM