Monday, September 29, 2014

Linking to Youtube with a specific Start and End time



Sometimes it can be useful to be able to link to a specific part of a Youtube video. Luckily, it is possible to send a video link with a specific start and end time.

Linking a specific start time is very simple, and is actually built into the "share" function on the Youtube video page. Below the any given video, click on the "share" tab, then look for the "start at" check box:



When you share this link, the video will start at the specified time for the viewer.



Specifying an end time is a little bit trickier, since we need to add the start and end time to the URL ourselves.

Adding the end time only seems to work if you are using the embed link (NOT the share link). Navigate to the "embed" tab and you'll see a long line of HTML code. For example:

<iframe width="420" height="315" src="//www.youtube.com/embed/0Bmhjf0rKe8" frameborder="0" allowfullscreen></iframe>


Normally this line is for embedding the video into a webpage. Copy out the Youtube link from there (see example below).

www.youtube.com/embed/0Bmhjf0rKe8

To add the start and end time, we need to add it to the end of our Youtube link. Both the start and the end at counted in seconds, so a start time of 10 means it will start 10 seconds into the video, and a start time of 120 will start 2 minutes into the video. The format for this looks like this:

?start=10&end=15

Adding the above line to the end of our video link tells the website to start the video at 10 seconds in, and end it 15 seconds in. The full link would look like this.

www.youtube.com/embed/0Bmhjf0rKe8?start=10&end=15



No comments:

Post a Comment