Posted on Jun 30, 2011 in Video, Web Design | 4 comments
There are numerous plugins to embed videos into your page, or you can get the HTML to embed a video directly from YouTube. And this can be quite useful, when you want to play a video in your page–typically when the page or post revolves around the video.
However, there are times when you just want an image thumbnail linking to the video, instead of embedding the video directly. This can be for a number of reasons:
There are several ways to accomplish this:
YouTube follows a consistent formula for thumbnail images.
Look at the link for the video–for example, http://www.youtube.com/watch?v=GDFUdMvacI0
Take the video ID… the portion after “v=”. If the URL is longer than that, only go until the next ampersand. For example, http://www.youtube.com/watch?v=GDFUdMvacI0&feature=youtu.be is the same video ID.
Then just substitute your video ID for the video ID in the following URLs to these thumbnail images:
http://img.youtube.com/vi/GDFUdMvacI0/0.jpg
http://img.youtube.com/vi/GDFUdMvacI0/1.jpg
http://img.youtube.com/vi/GDFUdMvacI0/2.jpg
http://img.youtube.com/vi/GDFUdMvacI0/3.jpg
0.jpg is a full-sized image. The other three are very small (120×90) and are taken automatically by YouTube from three certain points in the video.
The YouTube Embed WordPress plugin allows you to use a shortcut to embed the thumbnail of a YouTube video in a page or post, in this syntax:
[youtube_thumb target="_blank" alt="Real World Finance Video"]GDFUdMvacI0[/youtube_thumb]
However, this just adds the thumbnail images YouTube already generated (as in the last section) and has it link to the YouTube page. That’s all–just what you could easily do yourself.
My preference is still to manually take and edit a screenshot. Do you have a better method? A plugin you love? Let me know in the comments!
Very good!
Thank you!!
Magnificent goods from you, man. I’ve understand your stuff previous to
and you are just too magnificent. I really like what you’ve
acquired here, certainly like what you are stating and the
way in which you say it. You make it entertaining and you still take care of to keep it sensible.
I can’t wait to read far more from you. This is really
a wonderful web site.
Have you ever thought about writing an e-book or guest authoring on other sites?
I have a blog based on the same subjects you discuss and would
love to have you share some stories/information. I know my viewers would appreciate your work.
If you’re even remotely interested, feel free to send me an email.
Thank for your info!!!