title: how to show youtube video thumbnails
body: <p>my site lets users upload the youtube video codes. I am trying to make playlist by showing the thumbnails of the uploaded videos and play the respective video after clicking on specific thumbnail.</p>
  
  <p>i would like to know the method of getting the caption and the thumbnail pictures of those videos which has been uploaded using embed code of youtube?</p>
  
  <p>Edit:</p>
  
  <p>To make question more clear, my users uploads code like one given below:</p>
  
  <pre><code>&lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/-L8DFfSJbqU&amp;hl=en_US&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/-L8DFfSJbqU&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;
  </code></pre>
  
  <p>so from those code how can i find the vedio id first then secondly the thumbnail picture?</p>