title: How can I get video thumbnail of youtube and vimeo embed code using php?
body: <p>I have a <em>WordPress</em> site in which I am inserting video embed code in the post editor. In the front end I need to show the video Thumbnail on click on them it will show the video in lightbox.</p>
  
  <p>The requirement is that, I need to show the video thumbnail of the videos I have given in the editor.</p>
  
  <p>I will use YouTube and vimeo embed code and if it is other video then I will show post thumbnail, or a default image.</p>
  
  <p>I will use one video embed code per posts.</p>
  
  <p>Thanks in advance.</p>