Chandu Chandu - 2 months ago 5x
Android Question

Display Thumbnail of Youtube Videos in Android

I writing an app where i want to display a list of YouTube videos. But I want the list to display the video title with some other info but also show a thumbnail of the video like it does when we go

Can some help me please on how to display the thumbnail for a video URL



Try this:

  1. Parse video ID from the URL: this is the 'v' parameter in URL. I.e. 'xAiiwSXVRiw' in

  2. Get the video metadata via Youtube Gdata URL:

  3. Parse the XML that you get back and look for <media:thumbnail url='..'>. The 'url' attribute contains to the thumbnail url.