1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Autoplay for embedded videos?

Discussion in 'YouTube' started by dirtbag, Feb 11, 2014.

  1. dirtbag

    dirtbag Senior Member

    Joined:
    Jul 24, 2008
    Messages:
    990
    Likes Received:
    525
    How do people setup embedded videos to autoplay on page load? Can you still customize the colors in the player for embedded videos as well?
     
  2. Tommy Lawrence

    Tommy Lawrence Senior Member

    Joined:
    Nov 20, 2013
    Messages:
    1,082
    Likes Received:
    402
    Occupation:
    Online marketing
    Location:
    New York
    To autoplay embedded videos just add the text autoplay=1 in your embed code after the ? sign which immediately follows the video URL. But if there is another parameter after the URL e.g. REL then put &autoplay=1. For example if the original embed code is:
    <iframe width="640" height="360" src="//www.youtube.com/embed/8QF3qJ0U5K0?rel=0" frameborder="0" allowfullscreen></iframe>

    The autoplay embed code should be written as
    <iframe width="640" height="360" src="//www.youtube.com/embed/8QF3qJ0U5K0?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

    Note: Autoplay views will NOT increase your view count on YouTube because they are not considered as genuine vews.
     
    • Thanks Thanks x 2
    Last edited: Feb 11, 2014
  3. dirtbag

    dirtbag Senior Member

    Joined:
    Jul 24, 2008
    Messages:
    990
    Likes Received:
    525
    Don't care about increasing views. Just using YT to host the pitch video on a squeeze page.