Quick Youtube Question

3 replies
Just curious you how to make a youtube video autoplay when someone visits your webpage?

Is there an option that I add in the code that is embedded?

I know it's probably something simple I'm just overlooking.

Thanks Warriors!
#question #quick #youtube
  • Profile picture of the author Francis Chan
    You will need to add "&autoplay=1" (without the "") to the YouTube code.

    Using the below example code:

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/GD0UMFHhanc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GD0UMFHhanc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

    add the "&autoplay=1" as shown below

    <embed src="http://www.youtube.com/v/GD0UMFHhanc&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always"
    {{ DiscussionBoard.errors[296477].message }}
  • Profile picture of the author StaffPartyTrivia
    See my sig link ... you can view source and play with the code.

    NOTE:
    You need to resize it TWICE ... once at the start of the code, once at the end. You also need to put the autoplay command in TWICE.

    One is for the param, one for the embed.

    You'll notice mine has a white border, which you will get, too.

    Above you see v/GD0UMFHhanc&hl=en&fs=1"></param ...

    v/GD0UMFHhanc&hl=en&fs=1"></param

    The red is replaced with YOUR unique youtube video code.
    Be careful not to delete the &
    {{ DiscussionBoard.errors[297002].message }}

Trending Topics