I am developing an application where I want to show a list which contains urls of youtube video. I am succeeded in showing list but problem is I am unable to show video thumbnail.
How to create youtube video thumbnail programatically.
Thank You
Edited:-- Hiren Dabhi give solution which I am using now & it solved problem
Thank You
To get the thumbnail, open the video and copy the URL from the browser address bar. If you're using the YouTube mobile app, locate the Share button and copy the URL to your clipboard.
Just hover your mouse over the input or output cell, then slide the mouse pointer over the thumbnail. Right-click and select Copy.
Making a video thumbnail is relatively straightforward. You can take a screenshot from your video that best explains its contents, or you can use a tool like Photoshop or Canva to overlay text or icons on the image. To make a screen capture on a PC, use the Windows Snipping Tool.
How are you getting the list of URLs ?
Read the Google Data API reference : http://code.google.com/apis/youtube/2.0/reference.html#Overview
You can post further queries with the video-id to get the thumbnail image directly which you could display. thumbnail metadata looks like this : [media:thumbnail url='http://img.youtube.com/vi/8aYQ_wjmriQ/2.jpg' height='90' width='120' time='00:01:23' yt:name='default'/]
It is not possible to get a direct thumbnail of YouTube video, because actually it redirects the URL. If your URL is direct video URL then only you can get the thumbnail of that video.
You can get a thumbnail of your YouTube video using http://img.youtube.com/vi/VIDEO_ID/default.jpg by replacing VIDEO_ID with your own video's ID. This is fixed link for any YouTube video.
Hope this helps.... :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With