Vlogging is one of the crucial part of blogging, considered one of the best tool for expressing ideas. YouTube, Dailymotion is one of the tw...
Vlogging is one of the crucial part of blogging, considered one of the best tool for expressing ideas. YouTube, Dailymotion is one of the two most popular video sharing site which contains millions of videos that you can share on your blog or website.
Sometimes, you might embed a long video on your site, and also add a note just below the video to tell the visitors to watch only a certain portion. This behavior not only kills time but also irritates the viewers of your video. So it is not a good sense.
The best idea to embed a YouTube video is to take the advantages of the parameter that lets you specify the start and end time. By which you can skip the unnecessary part or the introduction part of a lengthy video as per your desire.
For example, You are embedding a full-length movie from YouTube and want that viewer to focus on a particular scene that begins from 'xx: xx' seconds and ends with 'yy: yy' seconds. So, that when the scene has finished, the video should stop playing. see demo below
Link to a certain portion(time) of a YouTube Video?
1. First of all, navigate to YouTube and find a video which you like to embed and grab the iframe code and paste the code into the Notepad. You iframe code should be something like below,<iframe width="560" height="315" src="https://www.youtube.com/embed/-ZWGpOSS6T0" frameborder="0" allowfullscreen></iframe>2. And now, we have to add start and end parameter at the end of the src(URL) of the video that is ?start=xx&end=yy&version=3
3. Let's say, you want to embed a video which should start from 2:10 and ends to 2:25. So, we need to first convert our start and end time into second. Then the calculation should be,
Start Time (XX) | ( 2 × 60 ) + 10 = 130 |
End Time (YY) | ( 2 × 60 ) + 25 = 145 |
4. And, now the final code after adding start and end parameter should be something like below,
<iframe width="560" height="315" src="https://www.youtube.com/embed/-ZWGpOSS6T0?start=130&end=144&version=3" frameborder="0" allowfullscreen></iframe>5. That's it.
No comments:
Post a Comment