How to Embed Looped Video into Your Blogs and Websites
By fdoleac
Code for Looped Video
Video is a great place to post content as the site is crawled frequently by search engines. Once you have your video posted there, you can embed the video in other locations such as your website and blogs. Embedding inserts the video right into the website/blog and allows individuals to play it directly on the page without linking out to the host.
The standard YouTube code does not automatically play the video and loop it (play it over and over again). Visitors are required to click the play button. Below are instructions on a simple addition to the code that will automatically play the video on a loop when someone visits the page.
Obtaining the Embed Code
1. Find your video on YouTube and click on the EMBED button.
2. A code will display that you can copy and paste to your website blog.
Adding the Auto Play and Loop to the YouTube Code
1. The code appears something like this
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
2. The url for your video appears twice in the code. See the example below highlighted
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
3. At the end of each url (and before the quotation marks), add &autoplay=1&loop=1. In the example above, the new code would look like this
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US &autoplay=1&loop=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jCTDeGDTYkQ?fs=1&hl=en_US &autoplay=1&loop=1"type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Sample Looped Video
Comments
No comments yet.