Ever wanted to share just a short part of a long video on your blog? Sometimes we come across a quite long video on Youtube and pick up something from it that we want to share. It can be a problem if we want to share only a certain part of it and not the rest of the video.
That’s the trouble I was facing when I wanted to embed a Youtube video on this post.
Fortunately, if it’s on Youtube, you don’t really have to download the video, edit it yourself and re-upload the part you want to share. That will take too much time. Here’s how to quickly embed a Youtube video with specified start time and end time.
- First thing you have to do is of course get the specific time you want your embedded video to start and the specific time you want it to end at. Then convert them into seconds. Let’s say you want to embed only the part of the video starting from
In seconds, your start time would be
( 2 * 60 ) + 16 = 136and your end time would be
( 2 * 60 ) + 58 = 178.
- Next, grab the embed code from the Youtube video, and append the following parameters to the video URL in the embed code:
[your_end_time]with your actual start and end times in seconds so that your embed code would look like this:
<iframe width="560" height="315" src="//www.youtube.com/embed/Ua3dUrY9HJ8?start=136&end=178&version=3" frameborder="0" allowfullscreen> </iframe>
The version parameter there specifies the Youtube player version that should be used for your embedded video. Version 3 is the only version that supports the
end parameter so if you want to specify an end time for your embedded video, make sure to specify version 3 as the player to be used in your embedded video.
If you only want to specify a starting time and no end time, you can just omit the
end parameter entirely.
And that’s it, your embedded video should only play the part that you have specified. Just like in the following example: