How get the thumbnail from YouTube

person shubham sharmafolder_openAndroid, issueslocal_offer, access_time October 25, 2016

For example your youtube video url is as below.

 

In this url parameter v=Rxo0Upfz48Q stands for video id. So, in above url videoID isRxo0Upfz48Q

You can get videoID using below code.

 

Now using videoID you can make url to get first frame of that youtube video like below.

 

Now you can get thumbnail image from above url and display in your imageview.

warningComments are closed.