How To AutoPlay a YouTube Video In WordPress
One reader @todaysmiracles asked me if I would do a video about how to autoplay a video–here it is.
Step 1. Grab your youtube embed code
Step 2. Paste the code to a notepad
Step 3. Use this &autoplay=1
Step 4. After the Youtube “string” see below in blue–paste the above code–in two places–see example below in blue.
Step 4. Open up your blog post in the html editor tab
Step 5. Paste your new embed code
Before Code
<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>
After Code
<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6&autoplay=1“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6&autoplay=1” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>
Youtube is my favortie site to visit aside from facebook. most of the time i watched movie trailers and music videos on it.
Holly I literally scoured the net looking to learn how to do this for a client. I knew it could be done but after hours of reading garbage found your blog and eureka. Thanks so much. I got so many “internet gurus” asking the same question on a forum I belong to, Im going to send them here. Nice job!!!
Steve,
I’m glad I could help. I appreciate the comments.
Thanks it solved all my problems.
But dont forget to add &hd=1 to embed URL for HD quality
I wish I’d found this days ago! So helpful, and I can’t believe how easy it turned out to be. Thanks so much!