Feb 02 2013

Print this Post

YouTube Embed Player Parameters

youtube embedEmbedding a YouTube video on your site or blog is an easy task. By simply clicking on the share/embed option, users can embed YouTube videos anywhere. While there are many basic embed options available, there are some additional embed parameters that allow you to control how the video is played. From hiding the controls to setting a start point of the video, you have many options at your fingertips.

To make it easier, I compiled a short list of the popular embed parameters with settings and syntax. For a complete list of all parameters, follow this link.

&relDisplays related videos after the video0, 10 = NO 1 = YES
&fsControls the display of the full screen button0, 10 = NO 1 = YES
&borderPlaces a border around video0,10 = NO 1 = YES (gray line)
&autoplayVideo starts automatically 0, 10 = NO 1 = YES (will autoplay)
&loopLoops the video after it's finished0, 10 = NO 1 = YES
&startYou can designate the start point of the video.any numberappend the number at start point
&showinfoDisplay info of video0,10 = NO 1 = YES

As you will see in the table, there are two values for the parameters: 0 and 1. 0 is no and 1 is yes.

To add any of the parameters, simply append &parameter name=value (i.e.: &fs=0) to the video URL. So, the URL within the embed would look like this: http://www.youtube.com/watch?v=IwT7BHztBIU&autoplay=1

To see one of the parameters in action, I highlighted it with an example along with the embed code below. It’s also a good reason to showcase cute kittens as Jedis. 🙂

Start Parameter (&start): this one will start at a designated point on the timeline of the video. This parameter is great for jumping to a section of the video. In this instance, we are starting the video at 0:16.

Here’s the embed code with the autostart parameter. Simply highlight the code below and copy it. The only thing you need to change is the URL of the video and the start point. For this “start” parameter, you need to be aware that the value is in seconds, not minutes. So, if you want to start the video at 1:20, it would be at 80 seconds.

<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/IwT7BHztBIU?version=3&amp;hl=en_US&start=16"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/IwT7BHztBIU?version=3&amp;hl=en_US&start=16" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Create a link with a parameter:

You can also create a link with the same parameter. However, the syntax is a little different. Simply append the following to the URL: #t=xxmxxxs. Replace “xxx” with the minutes and seconds. To illustrate, this would be the URL with a start point of 1:08

Feel free to share any thoughts and have fun embedding!!

Permanent link to this article: http://www.carlferrara.com/youtube-embed-player-parameters/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>