Set Youtube video start&end times – 2014 style

Let’s say so want to post link to video or embed it in website. But in a way so video starts at specific time. Or maybe you want to set ending timestamp. You could download video, cut and upload to Youtube, but there’s a much much easier way:

Youtube link

Assume you want link this video:¬†https://www.youtube.com/watch?v=7ASwmOsE3Ug (Workout Motivation Music2014), but so it starts with specific song. Let’s say it’s 33:25
Link would be https://www.youtube.com/watch?v=wjzoG-c92CY&t=33m25s
As you see, you need to add &t=XmYs where X are minutes and Y are seconds.

youtube video start timeAlternatively you could user Youtube’s little tool under video: Press ‘Share‘, check ‘Start at‘ and put your numbers. Vuola, link is made!

Embed

For the same video, to embed it in website, you would use this code

<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/7ASwmOsE3Ug?rel=0&start=2005” frameborder=”0″ allowfullscreen></iframe>

You simply¬† place start time in seconds together with ‘&start=‘ in the end of url.
Just to remind you that number is calculated as 60*m+s where m and s are minutes and seconds respectively.

End time

And now let’s make that video end at 52nd minute 1st second which doesn’t make any sense but will work as example.

<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/7ASwmOsE3Ug?rel=0&start=2005&end=3121” frameborder=”0″ allowfullscreen></iframe>

Same principle as with start time only instead of start you put end


Deprecated: Non-static method dc_jqslicksocial::footer() should not be called statically in /var/www/digitalette.com/wp-includes/class-wp-hook.php on line 298

Notice: Undefined index: show_post in /var/www/digitalette.com/wp-content/plugins/slick-social-share-buttons/inc/dcwp_social.php on line 805