It is well known how to link to a specific time in a YouTube video.

You can do it like this: http://youtu.be/zSv5CvhOEsA?t=3m46s

The YouTube screen itself has a user interface like this, making the link easy to create.

However, this interface does not appear when using the “embed code,” giving the impression that you can link only to the beginning of the video.

youtube-embed-starttime

Indeed, adding a string such as “?t=5m8s” to the src= link does not work.

In fact, however, different syntax lets you link to a point partway through the video.

For the example above:

<iframe width=”420″ height=”315″
src=”//www.youtube.com/embed/zSv5CvhOEsA?start=77
frameborder=”0″ allowfullscreen></iframe>

 

Add the starting point by placing after “?start=” the desired start time as an integer number of seconds.

You can similarly specify the ending point by adding a parameter such as “end=108.” It looks like this:

 

<iframe width=”420″ height=”315″
src=”//www.youtube.com/embed/zSv5CvhOEsA?start=77&end=108
frameborder=”0″ allowfullscreen></iframe>

Here is what it looks like in practice.

Watch this video on YouTube.
Playing the video connects to YouTube.

It worked!

See you next time!

Related posts