Saket Jajodia

Tecko Blog..!!

Follow me on Twitter @

Embed YouTube Video With A Specific Time From Where It Will Start

Hi! Everyone, hope you all are fine.
Today in this post I will tell you how you can embed YouTube video which starts from a specific time you want. Most of you sometimes came up with a video which have some introduction in a video then after introduction there is some interesting past and which you want to share with your visitors or readers.

YouTube Logo

Let me tell you how in both type (iframe and embed code) of YouTube video code

This is your normal embed code of a YouTube video in iframe/HTML5

<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/8Qz1v9758W0" frameborder="0" allowfullscreen></iframe>

And we want that this video starts from 36 seconds so we just need to add #t=0m36s

Now it will look something like this

<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/8Qz1v9758W0#t=0m36s" frameborder="0" allowfullscreen></iframe>

Here is a demo of a video using iframe code

This is your normal embed code of a YouTube video in embed/flash

<object width="480" height="390">
<param name="movie" value="http://www.youtube.com/v/8Qz1v9758W0"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/8Qz1v9758W0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="390"></embed>
</object>

And we want that this video starts from 36 seconds so we will add &start=36

Note: – If you want to start any video from X number of minutes and X number of seconds so you need to convert minutes into seconds then add seconds. Like you want to start from 6min and 16sec so it will become 6*60+16=376 so we will use &start=376

Now it will look something like this

<object width="480" height="390">
<param name="movie" value="http://www.youtube.com/v/8Qz1v9758W0&start=36"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/8Qz1v9758W0&start=36" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="390"></embed>
</object>

Here is a demo of a video using embed/flash code

If you have any questions or problem let me know.

Reply

Please use your original name while commenting, Thank you..!!








Designed by Blogger Templates and Blog and Web