Friday, December 09, 2011

Start an embedded YouTube video at a certain timestamp

Updated May 2014
You can add a start parameter to the embed code that YouTube generates for you.

<iframe allowfullscreen="" frameborder="0" height="315" src="//;start=56" width="560"></iframe>

Updated Apr 2013

From 2011

The “#t=17m08s” takes you to 17 minutes and 8 seconds in a video.

Embedded code.
<object height="385" width="640"><param name="movie" value=""></param><param name="allowscriptaccess" value="always"></param><embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" width="640" height="385"></embed></object>
See here for the example working.

This guide gives some other good pointers, "The default (and recommended) embed size is 480x385 for a 4:3 video and 640x385 for 16:9 content."

Here is an example of using 640x385 for 4:3 video.


Shahana said...

What do you mean by embedded YouTube video?

Rich Alger said...

You can view a YouTube video by going to the web address (or URL) of the video.

Or you can see it embedded in the web page of another site. To Embed a video in your site, or in this case a blog post you have to edit your post in the HTML view. Then use the code I used to embed the YouTube video in the blog post.

Embedding does not only apply to YouTube. There are all sorts of items that can be embedded in a web page. See this definition of embed.