1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Help with Autostart video code

Discussion in 'Web Design & Development' started by ustacp, Jul 23, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. ustacp

    ustacp Thread Starter

    Joined:
    Aug 13, 2004
    Messages:
    292
    How can I make this video start automatically? Right now you have to activate it and click play for it to run. I want it to run as soon as the webpage loads up. I cant seem to figure out where to place the coding. Thank you.

    <param name="movie" value="http://www.youtube.com/v/yiIVr3K_Lfw"></param><embed src="http://www.youtube.com/v/yiIVr3K_Lfw" type="application/x-shockwave-flash" width="240" height="180"></embed><p>
     
  2. ewiessner

    ewiessner

    Joined:
    May 3, 2006
    Messages:
    19
    Just add autoplay="true" in your <embed> tag anywhere.

    <embed src="mymovie.mov" autoplay="true">

    Code:
    <embed src="http://www.youtube.com/v/yiIVr3K_Lfw" type="application/x-shockwave-flash" width="240" height="180" autoplay="true"></embed>
    That should do it.
     
  3. Kengne

    Kengne

    Joined:
    Jul 30, 2006
    Messages:
    1
    As the OP surely found out, for some reason the autoplay=true will not work if it is just randomly embedded anywhere. I tried this, ALSO using a video from YouTube.com like the OP, and it didn't work for me. I tried several variations and still no success.

    Luckily for me - after some Googling I bumped across a page where someone had successfully started a YouTube video automatically w/o the user having to click to activate it.

    You must insert this: &amp;autoplay=1 like so:

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/yiIVr3K_Lfw"></param><embed src="http://www.youtube.com/v/yiIVr3K_Lfw&amp;autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

    I know it looks funny, but I swear it works. Check out my page, if you don't believe.http://toppahshottah.hi5.com
     
  4. ustacp

    ustacp Thread Starter

    Joined:
    Aug 13, 2004
    Messages:
    292
    Hey, it works lol. Thanks a lot.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/485566

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice