Top Hosting Forum

WebHosting Reviews Forum


How to auto play Youtube video

General Webmaster Discussion @ Top Hosting Forum
Hosting Forum Description
General Webmaster Discussion at Top Hosting Forum, Welcome

How to auto play Youtube video

Postby hostingforum » Wed Jan 02, 2013 5:14 pm

Hi, You are a webmaster and want to add Youtube video code to your site.

But you want video to be automatically played when visitor load your webpage. Youtube video autorun is possible, that is great :)

Just add "&autoplay=1" after video address!

Default video example:

<iframe width="480" height="360" src="http://www.youtube-nocookie.com/embed/4VcPYin_6YY?rel=0" frameborder="0" allowfullscreen></iframe>

Video example with auto run:

<iframe width="480" height="360" src="http://www.youtube-nocookie.com/embed/4VcPYin_6YY?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

youtube-nocookie.com is youtube address for video which do not save visitors details to cookies (privacy enabled mode), rel=0 result no related videos will be shown after video finished.



Ad: There You can have your forum site-wide banner/text ad for $19 monthly. Contact admin


User avatar
hostingforum
Site Admin
 
Posts: 625
Joined: Fri May 20, 2011 7:58 pm
Location: Czech Republic

Re: How to auto play Youtube video

Postby vincentgillbert » Fri Mar 01, 2013 12:07 pm

By default when you embed a youtube video on a web page using the YouTube embed code the user has to press the play button. For all situations where you want the video to autoplay you need to make two changes to the object embed code that you get from YouTube.

Then append the following at the end:
&autoplay=1


vincentgillbert
 
Posts: 7
Joined: Fri Mar 01, 2013 12:03 pm


Return to General Webmaster Talk

Who is online

Users browsing this forum: No registered users and 1 guest


cron