How to link to the middle of a video using YouTube's "embedded code"

When linking to YouTube, it is well known how to link to a certain time segment.

This is how it works: http://youtu.be/zSv5CvhOEsA?t=3m46s

In fact, YouTube has a user interface similar to this, which makes it easy to create links.

However, if you try to do this with the "embedded code", no such user interface will appear. As a result, it gives the impression that you can only link to the beginning of the video.

youtube-embed-starttime

In fact, putting a string like "?t=5m8s" in a "src=" link won't work.

However, it is actually possible to link to part of a video by using other syntax.

In the above example,

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

 

You can add a start point by adding "?start=" followed by the number of seconds you want to start from, as in

Similarly, you can specify the end location by adding a parameter like "end=108". It looks like this:

 

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

If you actually try it, this is what happens.

It worked!

Well then!

Leave a comment

This site uses Akismet to reduce spam.For details of how to process comment data, please click here.